[Zope3-checkins] CVS: Zope3/src/zope/app/securitypolicy - metadirectives.py:1.3

Stephan Richter srichter at cosmos.phy.tufts.edu
Sat Mar 20 14:52:47 EST 2004


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

Modified Files:
	metadirectives.py 
Log Message:


Updated directives to use Permission field type so that redefining permissions
is possible.




=== Zope3/src/zope/app/securitypolicy/metadirectives.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/securitypolicy/metadirectives.py:1.2	Mon Mar  8 07:06:03 2004
+++ Zope3/src/zope/app/securitypolicy/metadirectives.py	Sat Mar 20 14:52:47 2004
@@ -18,6 +18,7 @@
 from zope.interface import Interface
 from zope.schema import Id 
 from zope.app.security.metadirectives import IBaseDefineDirective
+from zope.app.security.fields import Permission
 
 class IGrantDirective(Interface):
     """Grant Permissions to roles and principals and roles to principals."""
@@ -27,7 +28,7 @@
         description=u"Specifies the Principal to be mapped.",
         required=False)
 
-    permission = Id(
+    permission = Permission(
         title=u"Permission",
         description=u"Specifies the Permission to be mapped.",
         required=False)




More information about the Zope3-Checkins mailing list