This documentation covers Review Board 6.x.
You can select a version above or
view the latest documentation.
reviewboard.site.context_processors
-
class AllPermsLookupDict(user, app_label, perms_wrapper)[source]
Bases: PermLookupDict
-
__init__(user, app_label, perms_wrapper)[source]
-
__repr__()[source]
Return repr(self).
-
__getitem__(perm_name)[source]
-
__nonzero__()[source]
-
__bool__()[source]
-
class AllPermsWrapper(user, local_site_name)[source]
Bases: PermWrapper
-
__init__(user, local_site_name)[source]
-
__getitem__(app_label)[source]
-
get_local_site()[source]
-
localsite(request)[source]
Returns context variables useful to Local Sites.
This provides the name of the Local Site (local_site_name
), and
a permissions variable used for accessing user permissions (perm
).
perm
overrides the permissions provided by the Django auth framework.
These permissions cover Local Sites along with the standard global
permissions.