Back to index

plone3  3.1.7
__init__.py
Go to the documentation of this file.
00001 from Products.PluggableAuthService import registerMultiPlugin
00002 from AccessControl.Permissions import add_user_folders
00003 
00004 from borg.localrole import workspace
00005 
00006 registerMultiPlugin(workspace.WorkspaceLocalRoleManager.meta_type)
00007 
00008 def initialize(context):
00009 
00010     # Register PAS plug-in
00011     
00012     context.registerClass(workspace.WorkspaceLocalRoleManager,
00013                           permission = add_user_folders,
00014                           constructors = (workspace.manage_addWorkspaceLocalRoleManagerForm,
00015                                           workspace.manage_addWorkspaceLocalRoleManager),
00016                           visibility = None)