X-Git-Url: https://scm.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/3c4367d8e03450e9a73e61f4247145d2b6c86a33..959d888c17d1403d2eeecc19bc4b5e2c8d1debf6:/skins/control/remove_groups.py diff --git a/skins/control/remove_groups.py b/skins/control/remove_groups.py deleted file mode 100755 index 9e8909f..0000000 --- a/skins/control/remove_groups.py +++ /dev/null @@ -1,15 +0,0 @@ -##parameters=groups=[], ajax='' -sd = context.session_data_manager.getSessionData() -groupPrefix = context.acl_users.getGroupPrefix() -prefixLenght = len(groupPrefix) - -if sd is not None : - if sd.has_key('requestedGroup') and sd['requestedGroup'] in groups : - sd['requestedGroup'] = None - -context.portal_groups.removeGroups([ groupId[prefixLenght:] for groupId in groups], keep_workspaces=1) -from ZTUtils import make_query as mq -url = context.portal_url() -red = context.REQUEST.RESPONSE.redirect -msg = not groups and 'Please select one or more groups before.' or (len(groups) == 1 and 'Group deleted.' or 'Groups deleted.') -return red('%s/portal_all_groups?%s' % (url, mq(portal_status_message=msg, ajax=ajax)))