[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/PageTemplate - SimpleViewClass.py:1.1.2.1.4.3
Jim Fulton
jim@zope.com
Tue, 4 Jun 2002 15:53:06 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/PageTemplate
In directory cvs.zope.org:/tmp/cvs-serv23980
Modified Files:
Tag: Zope3InWonderland-branch
SimpleViewClass.py
Log Message:
Changed browserDefault to return self, ().
Added interface implementation assertion so that browserDefault would
be called.
=== Zope3/lib/python/Zope/App/PageTemplate/SimpleViewClass.py 1.1.2.1.4.2 => 1.1.2.1.4.3 ===
import sys
from Zope.Publisher.Browser.BrowserView import BrowserView
+from Zope.Publisher.Browser.IBrowserPublisher import IBrowserPublisher
from ViewPageTemplateFile import ViewPageTemplateFile
from Zope.Security.Checker import defineChecker, NamesChecker
class simple(BrowserView):
+ __implements__ = IBrowserPublisher, BrowserView.__implements__
+
def browserDefault(self, request):
- return self, ('index.html',)
+ return self, ()
def publishTraverse(self, request, name):
if name == 'index.html':