[Zope3-checkins] CVS: Zope3/src/zope/app/publisher/xmlrpc - metadirectives.py:1.1.2.1

Philipp von Weitershausen philikon at philikon.de
Wed Aug 6 11:25:43 EDT 2003


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

Modified Files:
      Tag: zcml-interface-field-branch
	metadirectives.py 
Log Message:
Change GlobalObject to InterfaceField wherever applicable.


=== Zope3/src/zope/app/publisher/xmlrpc/metadirectives.py 1.1 => 1.1.2.1 ===
--- Zope3/src/zope/app/publisher/xmlrpc/metadirectives.py:1.1	Sun Aug  3 19:47:47 2003
+++ Zope3/src/zope/app/publisher/xmlrpc/metadirectives.py	Wed Aug  6 10:25:08 2003
@@ -18,6 +18,7 @@
 from zope.interface import Interface
 from zope.configuration.fields import GlobalObject, Tokens, PythonIdentifier
 from zope.schema import TextLine, Id
+from zope.app.configuration import InterfaceField
 
 class IViewDirective(Interface):
     """View Directive for XML-RPC methods."""
@@ -34,7 +35,7 @@
         value_type=GlobalObject(),
         required=False)
 
-    for_ = GlobalObject(
+    for_ = InterfaceField(
         title=u"The interface this view applies to.",
         description=u"""
         The view will be for all objects that implement this
@@ -58,7 +59,7 @@
         Multiple interfaces can be provided, separated by
         whitespace.""",
         required=False,
-        value_type=GlobalObject() )
+        value_type=InterfaceField() )
 
     allowed_methods = Tokens(
         title=u"View attributes that are also allowed if user has permission.",




More information about the Zope3-Checkins mailing list