[Zope3-checkins] CVS: Zope3/src/zope/app/component/tests - test_directives.py:1.33

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


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

Modified Files:
	test_directives.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/component/tests/test_directives.py 1.32 => 1.33 ===
--- Zope3/src/zope/app/component/tests/test_directives.py:1.32	Mon Mar 22 17:31:49 2004
+++ Zope3/src/zope/app/component/tests/test_directives.py	Wed Mar 31 18:26:23 2004
@@ -489,7 +489,7 @@
         a1 = A1()
         a2 = A2()
         request = Request(IV)
-        view = zapi.queryMultiView((ob, a1, a2), 'test', request)
+        view = zapi.queryMultiView((ob, a1, a2), request, name='test')
         self.assertEqual(view.__class__, A3)
         self.assertEqual(view.context, (ob, a1, a2, request))
 




More information about the Zope3-Checkins mailing list