Home | Trees | Indices | Help |
|
---|
|
object --+ | turbogears.identity.conditions.Predicate --+ | object --+ | | | turbogears.identity.conditions.IdentityPredicateHelper --+ | has_permission
Checks if user attached to current identity has given permission.
This extends the standard ``identity.has_permission`` predicate in that it allows to define extra groups for anonymous users (named "anonymous" per default) and all authenticated users ("authenticated") to which additional permissions for these groups of users can be attached.
You can set the names of the extra groups in the configuration with the ``identity.anonymous_groups`` resp. ``identity.authenticated_groups``. Both settings expect a list of group names. Appropriatly named groups must be created in the database, but if they are missing the check will still work but always fail for anonymous users.
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
error_message =
|
|
|||
Inherited from |
|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Determine whether predicate is True or False for the given object.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Jun 30 22:09:05 2008 | http://epydoc.sourceforge.net |