[Zope3-checkins] CVS: Zope3/src/zope/app/mail - metadirectives.py:1.5

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


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

Modified Files:
	metadirectives.py 
Log Message:


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




=== Zope3/src/zope/app/mail/metadirectives.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/mail/metadirectives.py:1.4	Wed Mar  3 04:15:41 2004
+++ Zope3/src/zope/app/mail/metadirectives.py	Sat Mar 20 14:52:46 2004
@@ -18,6 +18,7 @@
 from zope.configuration.fields import Path
 from zope.interface import Interface
 from zope.schema import TextLine, Bytes, ASCII, BytesLine, Int
+from zope.app.security.fields import Permission
 
 class IDeliveryDirective(Interface):
     """This abstract directive describes a generic mail service
@@ -30,7 +31,7 @@
         default=u"Mail",
         required=False)
 
-    permission = TextLine(
+    permission = Permission(
         title=u"Permission",
         description=u"Defines the permission needed to use this service.",
         required=True)




More information about the Zope3-Checkins mailing list