[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/ZopePublication - Traversers.py:1.1.2.5
Jim Fulton
jim@zope.com
Tue, 20 Nov 2001 17:44:08 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/ZopePublication
In directory cvs.zope.org:/tmp/cvs-serv32589
Modified Files:
Tag: Zope-3x-branch
Traversers.py
Log Message:
Changed to handle presentation-less objects.
=== Zope3/lib/python/Zope/App/ZopePublication/Traversers.py 1.1.2.4 => 1.1.2.5 ===
def browser_default(self, request):
ob = self.target
+
# Use the default presentation.
- p = getPresentation(ob, '', IBrowserPublisher)
+ p = getPresentation(ob, '', IBrowserPublisher, None)
if p is None:
- raise PresentationNotFound
+ return ob, ()
+
r = p.browser_default(request)
return r