[Zope-CVS] SVN: GenericSetup/trunk/rolemap.py - fixed Python 2.3
compatibility
Yvo Schubbe
y.2006_ at wcm-solutions.de
Wed Feb 15 06:39:44 EST 2006
Log message for revision 41625:
- fixed Python 2.3 compatibility
Changed:
U GenericSetup/trunk/rolemap.py
-=-
Modified: GenericSetup/trunk/rolemap.py
===================================================================
--- GenericSetup/trunk/rolemap.py 2006-02-15 10:18:11 UTC (rev 41624)
+++ GenericSetup/trunk/rolemap.py 2006-02-15 11:39:43 UTC (rev 41625)
@@ -182,11 +182,12 @@
roles = p.getRoles( default=[] )
acquire = isinstance( roles, list ) # tuple means don't acquire
roles = [ r for r in roles if r in valid_roles ]
+ roles.sort()
if roles or not acquire:
permissions.append( { 'name' : name
, 'acquire' : acquire
- , 'roles' : sorted(roles)
+ , 'roles' : roles
} )
return permissions
More information about the Zope-CVS
mailing list