[Zope3-checkins] CVS: Zope3/src/zope/app/security - zopepolicy.py:1.15

Stephan Richter srichter at cosmos.phy.tufts.edu
Sun Dec 14 03:26:05 EST 2003


Update of /cvs-repository/Zope3/src/zope/app/security
In directory cvs.zope.org:/tmp/cvs-serv1651/src/zope/app/security

Modified Files:
	zopepolicy.py 
Log Message:
I remember that we were too lazy after ZCMLgeddon to require the principal
and role ids to be Id fields, since it required many places to change. 

While I was writing on the devel cookbook, I saw the metadirectives for the 
security again and could not resist fixing it.

All tests pass now and Zope seems to run fine as well. 


=== Zope3/src/zope/app/security/zopepolicy.py 1.14 => 1.15 ===
--- Zope3/src/zope/app/security/zopepolicy.py:1.14	Mon Nov  3 16:37:57 2003
+++ Zope3/src/zope/app/security/zopepolicy.py	Sun Dec 14 03:25:34 2003
@@ -78,7 +78,7 @@
         if user is system_user:
             return True
 
-        roledict = {'Anonymous': Allow}
+        roledict = {'zope.Anonymous': Allow}
         principals = {user.getId() : roledict}
 
         role_permissions = {}
@@ -228,7 +228,7 @@
 def permissionsOfPrincipal(principal, object):
     permissions = {}
 
-    roles = {'Anonymous': Allow}
+    roles = {'zope.Anonymous': Allow}
     principalid = principal.getId()
 
     # Make two passes.




More information about the Zope3-Checkins mailing list