[Zope3-checkins] CVS: Zope3/src/zope/app/form/browser - metadirectives.py:1.2

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


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

Modified Files:
	metadirectives.py 
Log Message:


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




=== Zope3/src/zope/app/form/browser/metadirectives.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/form/browser/metadirectives.py:1.1	Sat Mar 13 20:11:34 2004
+++ Zope3/src/zope/app/form/browser/metadirectives.py	Sat Mar 20 14:52:45 2004
@@ -20,6 +20,7 @@
      Bool, PythonIdentifier, MessageID
 from zope.schema import Text, TextLine, Id
 from zope.app.publisher.interfaces.browser import IUsage
+from zope.app.security.fields import Permission
 
 class ICommonInformation(IUsage):
     """
@@ -52,7 +53,7 @@
         required=False
         )
 
-    permission = Id(
+    permission = Permission(
         title=u"Permission",
         description=u"The permission needed to use the view.",
         required=True




More information about the Zope3-Checkins mailing list