| Method Summary |
| |
__init__(self,
name,
password,
roles,
domains)
|
| |
__allow_access_to_unprotected_subobjects__(self,
name,
value)
|
| |
__len__(self)
|
| |
__repr__(self)
|
| |
__str__(self)
|
| |
allowed(self,
object,
object_roles)
Check whether the user has access to object. |
| |
authenticate(self,
password,
request)
|
| |
getDomains(self)
Return the list of domain restrictions for a user |
| |
getId(self)
Get the ID of the user. |
| |
getRoles(self)
Return the list of roles assigned to a user. |
| |
getRolesInContext(self,
object)
Return the list of roles assigned to the user, including local roles
assigned in context of the passed in object. |
| |
getUserName(self)
Return the username of a user |
| |
has_permission(self,
permission,
object)
Check to see if a user has a given permission on an object. |
| |
has_role(self,
roles,
object)
Check to see if a user has a given role or roles. |
| |
hasRole(self,
*args,
**kw)
hasRole is an alias for 'allowed' and has been deprecated. |
| Inherited from Base |
| |
__getattribute__(...)
x.__getattribute__('name') <==> x.name |
| |
__getnewargs__(...)
Get arguments to be passed to __new__ |
| |
__getstate__(...)
Get the object serialization state |
| |
__reduce__(...)
Reduce an object to contituent parts for serialization |
| |
__setstate__(...)
Set the object serialization state
The state should be in one of 3 forms:
- None
Ignored
- A dictionary
In this case, the object's instance dictionary will be cleared and
updated with the new state. |
| Inherited from object |
| |
__delattr__(...)
x.__delattr__('name') <==> del x.name |
| |
__hash__(x)
x.__hash__() <==> hash(x) |
| |
__reduce_ex__(...)
helper for pickle |
| |
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value |