CleanupTemp n'existe plus.
[GroupUserFolder.git] / skins / gruf / getUsersInGroup.py
1 ## Script (Python) "getUsersInGroup"
2 ##bind container=container
3 ##bind context=context
4 ##bind namespace=
5 ##bind script=script
6 ##bind subpath=traverse_subpath
7 ##parameters=groupid
8 ##title=
9 ##
10
11 users=context.acl_users.getUsers()
12 prefix=context.acl_users.getGroupPrefix()
13
14 avail=[]
15 for user in users:
16 for group in user.getGroups():
17 if groupid==group or \
18 prefix+groupid==group:
19 avail.append(user)
20
21 return avail