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

Jim Fulton jim at zope.com
Mon Mar 15 15:42:17 EST 2004


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

Modified Files:
	metadirectives.py 
Log Message:
Overrode the for_ attribute in the page schema so that pages still
accept only a single for interface.


=== Zope3/src/zope/app/publisher/browser/metadirectives.py 1.15 => 1.16 ===
--- Zope3/src/zope/app/publisher/browser/metadirectives.py:1.15	Tue Mar  2 12:40:51 2004
+++ Zope3/src/zope/app/publisher/browser/metadirectives.py	Mon Mar 15 15:42:16 2004
@@ -1,4 +1,4 @@
-##############################################################################
+#############################################################################
 #
 # Copyright (c) 2001, 2002 Zope Corporation and Contributors.
 # All Rights Reserved.
@@ -156,6 +156,11 @@
     without repeating the 'for', 'permission', 'class', 'layer',
     'allowed_attributes', and 'allowed_interface' attributes.
     """
+
+    for_ = GlobalObject(
+        title=u"The interface this view is for.",
+        required=False
+        )
 
 class IPagesPageSubdirective(Interface):
     """




More information about the Zope3-Checkins mailing list