[Zope3-checkins] CVS: Zope3/src/zope/app/presentation/tests -
test_presentation.py:1.11
Jim Fulton
jim at zope.com
Wed Mar 31 18:26:55 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/presentation/tests
In directory cvs.zope.org:/tmp/cvs-serv672/src/zope/app/presentation/tests
Modified Files:
test_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/tests/test_presentation.py 1.10 => 1.11 ===
--- Zope3/src/zope/app/presentation/tests/test_presentation.py:1.10 Mon Mar 29 10:08:58 2004
+++ Zope3/src/zope/app/presentation/tests/test_presentation.py Wed Mar 31 18:26:24 2004
@@ -179,7 +179,8 @@
x = X()
y = Y()
r = TestRequest()
- self.assertEqual(self._service.queryMultiView((x, y), 'foo.html', r),
+ self.assertEqual(self._service.queryMultiView((x, y), r,
+ name='foo.html'),
None)
globalService = zapi.getService(None, Presentation)
@@ -189,7 +190,7 @@
globalService.provideAdapter(IBrowserRequest, MV, 'foo.html',
contexts=(I1, I3))
- v = self._service.queryMultiView((x, y), 'foo.html', r)
+ v = self._service.queryMultiView((x, y), r, name='foo.html')
self.assertEqual(v.__class__, MV)
self.assertEqual(v.request, r)
self.assertEqual(v.x, x)
More information about the Zope3-Checkins
mailing list