Back to index

plone3  3.1.7
Functions | Variables
CMFCore.permissions Namespace Reference

Functions

def setDefaultRoles

Variables

tuple security = ModuleSecurityInfo('Products.CMFCore.permissions')
 AccessContentsInformation = Permissions.access_contents_information
 ChangePermissions = Permissions.change_permissions
 DeleteObjects = Permissions.delete_objects
 FTPAccess = Permissions.ftp_access
 ManageProperties = Permissions.manage_properties
 ManageUsers = Permissions.manage_users
 UndoChanges = Permissions.undo_changes
 View = Permissions.view
 ViewManagementScreens = Permissions.view_management_screens
string ListFolderContents = 'List folder contents'
string ListUndoableChanges = 'List undoable changes'
string AccessInactivePortalContent = 'Access inactive portal content'
string ModifyCookieCrumblers = 'Modify Cookie Crumblers'
string ReplyToItem = 'Reply to item'
string ManagePortal = 'Manage portal'
string ModifyPortalContent = 'Modify portal content'
string ListPortalMembers = 'List portal members'
string AddPortalFolders = 'Add portal folders'
string AddPortalContent = 'Add portal content'
string AddPortalMember = 'Add portal member'
string SetOwnPassword = 'Set own password'
string SetOwnProperties = 'Set own properties'
string ChangeLocalRoles = 'Change local roles'
string MailForgottenPassword = 'Mail forgotten password'
string RequestReview = 'Request review'
string ReviewPortalContent = 'Review portal content'

Function Documentation

def CMFCore.permissions.setDefaultRoles (   permission,
  roles 
)
Sets the defaults roles for a permission.

Definition at line 60 of file permissions.py.

00060 
00061 def setDefaultRoles(permission, roles):
00062     '''
00063     Sets the defaults roles for a permission.
00064     '''
00065     # XXX This ought to be in AccessControl.SecurityInfo.
00066     registered = _registeredPermissions
00067     if not registered.has_key(permission):
00068         registered[permission] = 1
00069         Products.__ac_permissions__=(
00070             Products.__ac_permissions__+((permission,(),roles),))
00071         mangled = pname(permission)
00072         setattr(ApplicationDefaultPermissions, mangled, roles)
00073 
00074 # Note that we can only use the default Zope roles in calls to
00075 # setDefaultRoles().  The default Zope roles are:
00076 # Anonymous, Manager, and Owner.
00077 
00078 #
00079 # CMF Base Permissions
00080 #
00081 
security.declarePublic('ListFolderContents')

Here is the caller graph for this function:


Variable Documentation

CMFCore.permissions.AccessContentsInformation = Permissions.access_contents_information

Definition at line 33 of file permissions.py.

string CMFCore.permissions.AccessInactivePortalContent = 'Access inactive portal content'

Definition at line 90 of file permissions.py.

string CMFCore.permissions.AddPortalContent = 'Add portal content'

Definition at line 118 of file permissions.py.

string CMFCore.permissions.AddPortalFolders = 'Add portal folders'

Definition at line 114 of file permissions.py.

string CMFCore.permissions.AddPortalMember = 'Add portal member'

Definition at line 122 of file permissions.py.

string CMFCore.permissions.ChangeLocalRoles = 'Change local roles'

Definition at line 134 of file permissions.py.

CMFCore.permissions.ChangePermissions = Permissions.change_permissions

Definition at line 36 of file permissions.py.

CMFCore.permissions.DeleteObjects = Permissions.delete_objects

Definition at line 39 of file permissions.py.

CMFCore.permissions.FTPAccess = Permissions.ftp_access

Definition at line 42 of file permissions.py.

string CMFCore.permissions.ListFolderContents = 'List folder contents'

Definition at line 82 of file permissions.py.

string CMFCore.permissions.ListPortalMembers = 'List portal members'

Definition at line 110 of file permissions.py.

string CMFCore.permissions.ListUndoableChanges = 'List undoable changes'

Definition at line 86 of file permissions.py.

string CMFCore.permissions.MailForgottenPassword = 'Mail forgotten password'

Definition at line 138 of file permissions.py.

string CMFCore.permissions.ManagePortal = 'Manage portal'

Definition at line 102 of file permissions.py.

CMFCore.permissions.ManageProperties = Permissions.manage_properties

Definition at line 45 of file permissions.py.

CMFCore.permissions.ManageUsers = Permissions.manage_users

Definition at line 48 of file permissions.py.

string CMFCore.permissions.ModifyCookieCrumblers = 'Modify Cookie Crumblers'

Definition at line 94 of file permissions.py.

string CMFCore.permissions.ModifyPortalContent = 'Modify portal content'

Definition at line 106 of file permissions.py.

string CMFCore.permissions.ReplyToItem = 'Reply to item'

Definition at line 98 of file permissions.py.

string CMFCore.permissions.RequestReview = 'Request review'

Definition at line 147 of file permissions.py.

string CMFCore.permissions.ReviewPortalContent = 'Review portal content'

Definition at line 151 of file permissions.py.

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

Definition at line 26 of file permissions.py.

string CMFCore.permissions.SetOwnPassword = 'Set own password'

Definition at line 126 of file permissions.py.

string CMFCore.permissions.SetOwnProperties = 'Set own properties'

Definition at line 130 of file permissions.py.

CMFCore.permissions.UndoChanges = Permissions.undo_changes

Definition at line 51 of file permissions.py.

CMFCore.permissions.View = Permissions.view

Definition at line 54 of file permissions.py.

CMFCore.permissions.ViewManagementScreens = Permissions.view_management_screens

Definition at line 57 of file permissions.py.