[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/ZopePublication/tests - testZopePublication.py:1.1.2.20
Steve Alexander
steve@cat-box.net
Wed, 27 Mar 2002 18:05:12 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/ZopePublication/tests
In directory cvs.zope.org:/tmp/cvs-serv16410/lib/python/Zope/App/ZopePublication/tests
Modified Files:
Tag: Zope-3x-branch
testZopePublication.py
Log Message:
correcting browser_default to browserDefault and browser_traverse
to publishTraverse.
=== Zope3/lib/python/Zope/App/ZopePublication/tests/testZopePublication.py 1.1.2.19 => 1.1.2.20 ===
__implements__ = IBrowserPublisher
- def browser_traverse(self, request, name):
+ def publishTraverse(self, request, name):
if name == 'bruce':
return foo
raise KeyError, name
- def browser_default(self, request):
+ def browserDefault(self, request):
return self, ['bruce']
class DummyView(DummyPublished):
@@ -210,7 +210,7 @@
self.context = context
self.counter = 0
- def browser_traverse(self, request, name):
+ def publishTraverse(self, request, name):
self.counter+=1
return self.context[name]
@@ -238,7 +238,7 @@
def __init__(self, context):
self.context = context
- def browser_default(self, request):
+ def browserDefault(self, request):
return (self.context['bruce'], 'dummy')
provideView(I1, '_traverse', IBrowserPublisher, Adapter)