From: wichert <svn...@pl...> - 2006-01-21 23:55:46
|
Author: wichert Date: Sat Jan 21 23:55:17 2006 New Revision: 18290 Modified: PlonePAS/trunk/tools/groups.py Log: GRUF allows groups and roles parameters to addGroup to be None, so we have to support that as well Modified: PlonePAS/trunk/tools/groups.py ============================================================================== --- PlonePAS/trunk/tools/groups.py (original) +++ PlonePAS/trunk/tools/groups.py Sat Jan 21 23:55:17 2006 @@ -51,6 +51,11 @@ group = None success = 0 managers = self._getGroupManagers() + if roles is None: + roles = [] + if groups is None: + groups = [] + if not managers: raise NotSupported, 'No plugins allow for group management' for mid, manager in managers: |