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

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


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

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


=== Zope3/src/zope/app/publisher/browser/metadirectives.py 1.4 => 1.4.2.1 ===
--- Zope3/src/zope/app/publisher/browser/metadirectives.py:1.4	Sun Aug  3 13:50:20 2003
+++ Zope3/src/zope/app/publisher/browser/metadirectives.py	Wed Aug  6 10:25:05 2003
@@ -23,6 +23,7 @@
      PythonIdentifier, MessageID
 from zope.schema import Text, TextLine, Id
 
+from zope.app.configuration import InterfaceField
 from zope.app.component.metadirectives import IBasicViewInformation
 
 #
@@ -125,7 +126,7 @@
         required=True
         )
 
-    for_ = GlobalObject(
+    for_ = InterfaceField(
         title=u"The interface this view is the default for.",
         description=u"""
         The view is the default view for the supplied interface. If
@@ -212,14 +213,12 @@
     usage = TextLine(
         title=u"The template usage top-level variable",
         description=u"""
-          See the usage documentation in the README.txt in the 
-          zope/app/browser/skins directory.
-          If this view is associated with a menu item, this attribute should
-          not be supplied as the view will get its usage from the menu the
-          menu item is registered to.
-          This attribute is available for views not associated with a menu
-          item.
-          """,
+        See the usage documentation in the README.txt in the
+        zope/app/browser/skins directory. If this view is associated
+        with a menu item, this attribute should not be supplied as the
+        view will get its usage from the menu the menu item is
+        registered to. This attribute is available for views not
+        associated with a menu item.""",
         required=False
         )
 
@@ -372,7 +371,7 @@
         required=True,
         )
 
-    for_ = GlobalObject(
+    for_ = InterfaceField(
         title=u"Interface",
         description=u"The interface the menu items are defined for",
         required=False
@@ -474,7 +473,7 @@
         required=True
         )
 
-    for_ = GlobalObject(
+    for_ = InterfaceField(
         title=u"The interface this icon is for.",
         description=u"""
         The icon will be for all objects that implement this




More information about the Zope3-Checkins mailing list