[Zope3-checkins] CVS: Zope3/src/zope/app/utility - interfaces.py:1.5

Stephan Richter srichter at cosmos.phy.tufts.edu
Sat Apr 24 19:18:30 EDT 2004


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

Modified Files:
	interfaces.py 
Log Message:


Interchanged PerissionField and InterfaceField with Choice and Sequence.




=== Zope3/src/zope/app/utility/interfaces.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/utility/interfaces.py:1.4	Sat Apr 17 10:33:42 2004
+++ Zope3/src/zope/app/utility/interfaces.py	Sat Apr 24 19:17:59 2004
@@ -15,13 +15,12 @@
 
 $Id$
 """
-from zope.app.component.interfacefield import InterfaceField
 from zope.app.i18n import ZopeMessageIDFactory as _
 from zope.app.registration.interfaces import IComponentRegistration
 from zope.app.registration.interfaces import IRegisterable
 from zope.app.registration.interfaces import IRegistry
 from zope.app.registration.interfaces import ComponentPath
-from zope.schema import TextLine
+from zope.schema import TextLine, Choice
 import zope.component.interfaces
 
 class ILocalUtilityService(
@@ -46,9 +45,10 @@
         required=True,
         )
 
-    interface = InterfaceField(
+    interface = Choice(
         title = _("Provided interface"),
-        description = _("The interface provided by the adapter"),
+        description = _("The interface provided by the utility"),
+        vocabulary="Object Interfaces",
         readonly = True,
         required = True,
         )




More information about the Zope3-Checkins mailing list