[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/securitypolicy/grantinfo.py Fixed principalPermissionGrant so that it always returns a setting,

Jim Fulton jim at zope.com
Thu Nov 11 12:14:34 EST 2004


Log message for revision 28438:
  Fixed principalPermissionGrant so that it always returns a setting,
  rather than None.
  

Changed:
  U   Zope3/trunk/src/zope/app/securitypolicy/grantinfo.py

-=-
Modified: Zope3/trunk/src/zope/app/securitypolicy/grantinfo.py
===================================================================
--- Zope3/trunk/src/zope/app/securitypolicy/grantinfo.py	2004-11-11 17:14:32 UTC (rev 28437)
+++ Zope3/trunk/src/zope/app/securitypolicy/grantinfo.py	2004-11-11 17:14:33 UTC (rev 28438)
@@ -65,7 +65,7 @@
     def principalPermissionGrant(self, principal, permission):
         prinper = self.prinper.get(principal)
         if prinper:
-            return prinper.get(permission)
+            return prinper.get(permission, Unset)
         return Unset
 
     def getRolesForPermission(self, permission):



More information about the Zope3-Checkins mailing list