Utils documentation¶
ACL¶
-
coopeV3.acl.
acl_and
(*perms)¶ Test if a user has all perms
-
coopeV3.acl.
acl_or
(*perms)¶ Test if a user has one of perms
-
coopeV3.acl.
active_required
(view)¶ Test if the site is active (
preferences.models.GeneralPreferences.is_active
).
-
coopeV3.acl.
admin_required
(view)¶ Test if the user is staff.
-
coopeV3.acl.
self_or_has_perm
(pkName, perm)¶ Test if the user is the request user (pk) or has perm permission.
-
coopeV3.acl.
superuser_required
(view)¶ Test if the user is superuser.
CoopeV3 templatetags¶
A tag which returns
preferences.models.GeneralPreferences.brewer
.
A tag which returns
preferences.models.GeneralPreferences.global_message
.
A tag which returns
preferences.models.GeneralPreferences.grocer
.
A tag which returns
preferences.models.GeneralPreferences.automatic_logout_time
.
A tag which returns
preferences.models.GeneralPreferences.menu
.
A tag which returns
preferences.models.GeneralPreferences.president
.
A tag which returns
preferences.models.GeneralPreferences.rules
.
A tag which returns
preferences.models.GeneralPreferences.secretary
.
A tag which returns
preferences.models.GeneralPreferences.statutes
.
A tag which returns
preferences.models.GeneralPreferences.treasurer
.
A tag which returns
preferences.models.GeneralPreferences.vice_president
.