| Home | Trees | Indices | Help |
|
|---|
|
|
Holds abstractions related to Enomalism users and groups.
Status: Stable
|
|||
|
Visit Abstraction representing a visit to Enomalism by some client. |
|||
|
VisitIdentity An abstraction that links a visit to a user. |
|||
|
PermissionsMixin Mixing class that has permissions handling. |
|||
|
EnomalismUser An abstraction representing an Enomalism user. |
|||
|
EnomalismGroup An abstraction representing an Enomalism group. |
|||
|
|||
|
|||
| enomalism2.identity.EnomalismUser |
|
||
| Function |
|
||
|
|||
|
|||
Special user getter. Can be used to replace turbogears.identity.user.current in order to work properly in background threads that are not part of the web request queue. Basically, when BG threads like a valet job are run, the request is long gone, along with identity. Transaction.run_inside puts some thread local stuff together so we know who ran it, so we can use that to get the correct user. Example usage: >>> from enomalism2 import identity >>> identity.get()
Status: Stable |
Defines a decorator that wraps the specified function in a lock. Example usage: >>> from enomalism2 import identity >>> @identity.lockwrap ... def myfunc(): pass
Status: Stable |
Confirm that the current enomalism user has the specified permission on the specified uuid. If the user does not have permission, a e2_permission_error exception is raised. Example usage: >>> from enomalism2 import identity >>> from enomalism2.exceptions import E2PermissionError >>> try: ... identity.validate_permission('123', 'c') ... except E2PermissionError: ... print 'Permission Denied!'
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Sep 26 13:59:29 2008 | http://epydoc.sourceforge.net |