[Checkins]
SVN: Products.GenericSetup/trunk/Products/GenericSetup/rolemap.py
Allow import of permissions mapped to no roles
Laurence Rowe
l at lrowe.co.uk
Thu Dec 6 12:58:51 EST 2007
Log message for revision 82166:
Allow import of permissions mapped to no roles
Changed:
U Products.GenericSetup/trunk/Products/GenericSetup/rolemap.py
-=-
Modified: Products.GenericSetup/trunk/Products/GenericSetup/rolemap.py
===================================================================
--- Products.GenericSetup/trunk/Products/GenericSetup/rolemap.py 2007-12-06 17:04:45 UTC (rev 82165)
+++ Products.GenericSetup/trunk/Products/GenericSetup/rolemap.py 2007-12-06 17:58:50 UTC (rev 82166)
@@ -100,7 +100,7 @@
for permission in rolemap_info[ 'permissions' ]:
site.manage_permission( permission[ 'name' ]
- , permission[ 'roles' ]
+ , permission.get('roles', [])
, permission[ 'acquire' ]
)
More information about the Checkins
mailing list