X-Git-Url: https://scm.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/3c4367d8e03450e9a73e61f4247145d2b6c86a33..959d888c17d1403d2eeecc19bc4b5e2c8d1debf6:/skins/generic/makeGrufTree.py?ds=inline diff --git a/skins/generic/makeGrufTree.py b/skins/generic/makeGrufTree.py deleted file mode 100755 index c665ce0..0000000 --- a/skins/generic/makeGrufTree.py +++ /dev/null @@ -1,19 +0,0 @@ -##parameters= -aclu = context.acl_users -groupPrefix = aclu.getGroupPrefix() -gtool = context.portal_groups -from ZTUtils import SimpleTreeMaker - -def getGroups(object) : - """ return children groups """ - if object is aclu : - return gtool.getGroups(gtool.getRootGroups()) - else : - return gtool.getGroups(gtool.getGroupsOfGroup(object.id)) - -stm = SimpleTreeMaker("group_tree") -stm.setChildAccess(function = getGroups) -stm.setIdAttr('id') - -tree, rows = stm.cookieTree(aclu) -return {'tree' : tree, 'rows' : rows} \ No newline at end of file