[Zope3-checkins] CVS: Zope3/src/zope/app/publisher/browser - metadirectives.py:1.18

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


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

Modified Files:
	metadirectives.py 
Log Message:


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




=== Zope3/src/zope/app/publisher/browser/metadirectives.py 1.17 => 1.18 ===
--- Zope3/src/zope/app/publisher/browser/metadirectives.py:1.17	Thu Mar 18 07:19:24 2004
+++ Zope3/src/zope/app/publisher/browser/metadirectives.py	Sat Mar 20 14:52:46 2004
@@ -21,6 +21,7 @@
 from zope.configuration.fields import GlobalObject, Tokens, Path, \
      PythonIdentifier, MessageID
 from zope.schema import TextLine, Text, Id
+from zope.app.security.fields import Permission
 
 from zope.app.component.metadirectives import IBasicViewInformation
 from zope.app.publisher.interfaces.browser import IUsage
@@ -247,7 +248,7 @@
         required=False
         )
 
-    permission = Id(
+    permission = Permission(
         title=u"The permission needed to access the resource.",
         description=u"""
         If a permission isn't specified, the resource will always be




More information about the Zope3-Checkins mailing list