| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
s3rest.S3Method --+
|
S3EntityRoleManager --+
|
S3PersonRoleManager
Role Manager for Person Records
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from |
|||
| Class Methods | |
|
Inherited from |
| Static Methods | |
|
Inherited from |
| Class Variables | |
|
Inherited from |
| Properties | |
|
Inherited from |
| Method Details |
Constructor
|
Override to set the context from the perspective of a person
|
An entity needs to be specified with the "edit" query string parameter.
|
We are on a person record so we need to find the associated user account.
|
We are on a user/person so we want to target an entity (org/office) |
If an entity ID is provided, the dict will be the users
with roles assigned to that entity. The key will be the user IDs.
If a user ID is provided, the dict will be the entities the
user has roles for. The key will be the entity pe_ids.
If both an entity and user ID is provided, the dict will be
the roles assigned to that user for that entity. The key will be
the user ID.
@type entity_id: int
@param entity_id: the pe_id of the entity
@type user_id: int
@param user_id: id of the user account
@return: dict
{
1: [
"staff_reader",
"project_reader",
...
]
2: [
...
],
...
}
To Do: description? |
Return a list of fields, including a field for selecting a realm entity (such as an organisation or office).
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Mar 15 08:51:49 2019 | http://epydoc.sourceforge.net |