[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Services - ConfigurationInterfaces.py:1.10

Steve Alexander steve@cat-box.net
Sat, 21 Dec 2002 15:02:14 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Services
In directory cvs.zope.org:/tmp/cvs-serv10149/lib/python/Zope/App/OFS/Services

Modified Files:
	ConfigurationInterfaces.py 
Log Message:
Added permission attribute to NamedComponentConfiguration, as a
PermissionField.


=== Zope3/lib/python/Zope/App/OFS/Services/ConfigurationInterfaces.py 1.9 => 1.10 ===
--- Zope3/lib/python/Zope/App/OFS/Services/ConfigurationInterfaces.py:1.9	Thu Dec 19 15:38:21 2002
+++ Zope3/lib/python/Zope/App/OFS/Services/ConfigurationInterfaces.py	Sat Dec 21 15:02:13 2002
@@ -20,6 +20,7 @@
 from Interface.Attribute import Attribute
 from Zope.Schema import Text, TextLine
 from Zope.Schema.IField import ITextLine
+from Zope.App.Security.PermissionField import PermissionField
 
 Unregistered = u'Unregistered'
 Registered = u'Registered'
@@ -84,6 +85,8 @@
 class INamedComponentConfiguration(INamedConfiguration):
     """Configuration object that configures a component associated with a name
     """
+
+    permission = PermissionField("The permission needed to use the component.")
 
     componentPath = Attribute("The physical path to the component")