c665ce0ce2fdff67ecf793505c2ca52a66554c38
2 aclu
= context
.acl_users
3 groupPrefix
= aclu
.getGroupPrefix()
4 gtool
= context
.portal_groups
5 from ZTUtils
import SimpleTreeMaker
7 def getGroups(object) :
8 """ return children groups """
10 return gtool
.getGroups(gtool
.getRootGroups())
12 return gtool
.getGroups(gtool
.getGroupsOfGroup(object.id))
14 stm
= SimpleTreeMaker("group_tree")
15 stm
.setChildAccess(function
= getGroups
)
18 tree
, rows
= stm
.cookieTree(aclu
)
19 return {'tree' : tree
, 'rows' : rows
}