3 usersAndGroups
= context
.users_with_local_role(role
)
4 aclu
= context
.aq_inner
.acl_users
5 prefix
= aclu
.getGroupPrefix()
6 mtool
= context
.portal_membership
11 for uOrG
in usersAndGroups
:
12 if uOrG
.startswith(prefix
) :
17 gtool
= context
.portal_groups
20 usersFromGroups
.extend(gtool
.getUserNamesOfGroup(group
, no_recurse
= 0))
23 allUsersDbl
.extend(usersFromGroups
)
25 for user
in allUsersDbl
:
26 if user
not in allUsers
:
29 allMembers
= mtool
.getMembers(allUsers
)