[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/ZopePublication/tests - testZopePublication.py:1.1.2.18
Stephan Richter
srichter@cbu.edu
Wed, 27 Mar 2002 15:48:22 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/ZopePublication/tests
In directory cvs.zope.org:/tmp/cvs-serv21889/App/ZopePublication/tests
Modified Files:
Tag: Zope-3x-branch
testZopePublication.py
Log Message:
Fixed one I think.
=== Zope3/lib/python/Zope/App/ZopePublication/tests/testZopePublication.py 1.1.2.17 => 1.1.2.18 ===
__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)