Back to index

plone3  3.1.7
Functions | Variables
PluggableAuthService.permissions Namespace Reference

Functions

def setDefaultRoles

Variables

tuple security = ModuleSecurityInfo( 'Products.PluggableAuthService.permissions' )
 ManageUsers = Permissions.manage_users
string ManageGroups = "Manage Groups"
string SearchPrincipals = 'Search for principals'
string SetOwnPassword = 'Set own password'

Function Documentation

def PluggableAuthService.permissions.setDefaultRoles (   permission,
  roles 
)
Set the defaults roles for a permission.

o XXX This ought to be in AccessControl.SecurityInfo.

Definition at line 35 of file permissions.py.

00035 
00036 def setDefaultRoles( permission, roles ):
00037 
00038     """ Set the defaults roles for a permission.
00039 
00040     o XXX This ought to be in AccessControl.SecurityInfo.
00041     """
00042     registered = _registeredPermissions
00043 
00044     if not registered.has_key( permission ):
00045 
00046         registered[ permission ] = 1
00047         Products.__ac_permissions__=( Products.__ac_permissions__
00048                                     + ( ( permission, (), roles ), )
00049                                     )
00050 
00051         mangled = pname(permission)
00052         setattr(ApplicationDefaultPermissions, mangled, roles)
00053 
security.declarePublic( 'SearchPrincipals' )

Variable Documentation

Definition at line 32 of file permissions.py.

Definition at line 29 of file permissions.py.

string PluggableAuthService.permissions.SearchPrincipals = 'Search for principals'

Definition at line 54 of file permissions.py.

tuple PluggableAuthService.permissions.security = ModuleSecurityInfo( 'Products.PluggableAuthService.permissions' )

Definition at line 26 of file permissions.py.

Definition at line 58 of file permissions.py.