[Zope3-checkins] CVS: Zope3/src/zope/app/security/grants - metadirectives.py:1.2

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/grants
In directory cvs.zope.org:/tmp/cvs-serv1651/src/zope/app/security/grants

Modified Files:
	metadirectives.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/grants/metadirectives.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/security/grants/metadirectives.py:1.1	Sat Aug  2 16:05:36 2003
+++ Zope3/src/zope/app/security/grants/metadirectives.py	Sun Dec 14 03:25:34 2003
@@ -16,12 +16,12 @@
 $Id$
 """
 from zope.interface import Interface
-from zope.schema import BytesLine, Id 
+from zope.schema import Id 
 
 class IGrantDirective(Interface):
     """Grant Permissions to roles and principals and roles to principals."""
 
-    principal = BytesLine(
+    principal = Id(
         title=u"Principal",
         description=u"Specifies the Principal to be mapped.",
         required=False)
@@ -31,7 +31,7 @@
         description=u"Specifies the Permission to be mapped.",
         required=False)
 
-    role = BytesLine(
+    role = Id(
         title=u"Role",
         description=u"Specifies the Role to be mapped.",
         required=False)




More information about the Zope3-Checkins mailing list