[Zope-Checkins] CVS: Zope3/lib/python/Zope/ComponentArchitecture - ViewService.py:1.1.2.8
Jim Fulton
jim@zope.com
Sun, 3 Feb 2002 18:36:45 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/ComponentArchitecture
In directory cvs.zope.org:/tmp/cvs-serv1213
Modified Files:
Tag: Zope-3x-branch
ViewService.py
Log Message:
Changed default argument in getRequestDefaultViewName to the _marker
so detection of no default is handled correctly.
=== Zope3/lib/python/Zope/ComponentArchitecture/ViewService.py 1.1.2.7 => 1.1.2.8 ===
return result
-
if default is _marker:
raise ComponentLookupError(object, name, type)
@@ -101,7 +100,7 @@
return name
- def getRequestDefaultViewName(self, object, request, default=None):
+ def getRequestDefaultViewName(self, object, request, default=_marker):
'''See interface IViewService'''
return self.getDefaultViewName(object,
request.getViewType(),
@@ -115,6 +114,7 @@
getView = viewService.getView
provideView = viewService.provideView
getRequestView = viewService.getRequestView
+setDefaultViewName = viewService.setDefaultViewName
getDefaultViewName = viewService.getDefaultViewName
setDefaultViewName = viewService.setDefaultViewName
getRequestDefaultViewName = viewService.getRequestDefaultViewName