Package expedient :: Package clearinghouse :: Package roles :: Module views
[hide private]
[frames] | no frames]

Module views

source code

Created on Aug 9, 2010


Author: jnaous

Functions [hide private]
 
create(request, proj_id)
Create a new role for a project.
source code
 
update(request, role_id)
Update the permissions in the role
source code
 
delete(request, role_id)
Delete a role
source code
 
make_request(request, permission, permittee, target_obj_or_class, redirect_to=None)
When a permission is missing allow user to request a role.
source code
 
confirm_request(request, proj_id, req_id, allow, delegate) source code
Variables [hide private]
  TEMPLATE_PATH = 'roles'
  __package__ = 'expedient.clearinghouse.roles'
Function Details [hide private]

make_request(request, permission, permittee, target_obj_or_class, redirect_to=None)

source code 

When a permission is missing allow user to request a role.

Show the user a list of roles that have the missing permission, and allow her to request the permission from a user who can give that role.

See Also: ExpedientPermission for information about permission redirection.