reviewboard.site.context_processors¶
- class AllPermsLookupDict(user, app_label, perms_wrapper)¶
Bases:
PermLookupDict
- __init__(user, app_label, perms_wrapper)¶
- __repr__()¶
Return repr(self).
- __getitem__(perm_name)¶
- __nonzero__()¶
- __bool__()¶
- class AllPermsWrapper(user, local_site_name)¶
Bases:
PermWrapper
- __init__(user, local_site_name)¶
- __getitem__(app_label)¶
- get_local_site()¶
- localsite(request)¶
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.