[Zope3-checkins] CVS: Zope3/src/zope/app/presentation - presentation.py:1.13

Jim Fulton jim at zope.com
Wed Mar 31 18:26:54 EST 2004


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

Modified Files:
	presentation.py 
Log Message:
Rearranged the signatures of getMultiView and queryMultiView by moving
the name argument after the providing argument and making the name
optional. This makes multi-views more adapter-like. Multi-view lookup
by interface will be much more common than lookup by name (or name and
interfaace).


=== Zope3/src/zope/app/presentation/presentation.py 1.12 => 1.13 ===
--- Zope3/src/zope/app/presentation/presentation.py:1.12	Mon Mar 29 10:08:58 2004
+++ Zope3/src/zope/app/presentation/presentation.py	Wed Mar 31 18:26:23 2004
@@ -141,8 +141,9 @@
 
         return default
 
-    def queryMultiView(self, objects, name, request,
-                       providing=zope.interface.Interface, default=None):
+    def queryMultiView(self, objects, request,
+                       providing=zope.interface.Interface, name='',
+                       default=None):
         """Adapt the given objects and request
 
         The first argument is a sequence of objects to be adapted with the




More information about the Zope3-Checkins mailing list