Back to index

plone3  3.1.7
Functions | Variables
folder_localrole_delete Namespace Reference

Functions

def parseMemberRoleString

Variables

 pm = context.portal_membership
 pu = context.plone_utils
 reindex = False
 member_ids = member_ids,
 REQUEST = context.REQUEST)
tuple local_roles = context.acl_users.getLocalRolesForDisplay(context)
dictionary members = {}
tuple member_role = parseMemberRoleString(s)
list roles_for_member = []
list newRoles = [r for r in roles_for_member if r not in roles_to_delete]

Function Documentation

Definition at line 21 of file folder_localrole_delete.py.

00021 
00022 def parseMemberRoleString( s ):
00023     sidx = s.find('((')
00024     eidx = s.find('))')
00025     if sidx == -1 or eidx == -1:
00026         return None
00027     return s[:sidx], s[sidx+2:eidx]
00028 
00029 #
00030 # second look for certain roles
#

Variable Documentation

tuple folder_localrole_delete.local_roles = context.acl_users.getLocalRolesForDisplay(context)

Definition at line 35 of file folder_localrole_delete.py.

Definition at line 17 of file folder_localrole_delete.py.

Definition at line 40 of file folder_localrole_delete.py.

Definition at line 38 of file folder_localrole_delete.py.

list folder_localrole_delete.newRoles = [r for r in roles_for_member if r not in roles_to_delete]

Definition at line 54 of file folder_localrole_delete.py.

folder_localrole_delete.pm = context.portal_membership

Definition at line 9 of file folder_localrole_delete.py.

folder_localrole_delete.pu = context.plone_utils

Definition at line 10 of file folder_localrole_delete.py.

Definition at line 12 of file folder_localrole_delete.py.

folder_localrole_delete.REQUEST = context.REQUEST)

Definition at line 19 of file folder_localrole_delete.py.

Definition at line 49 of file folder_localrole_delete.py.