[Zope3-checkins] CVS: Zope3/src/zope/app/pagetemplate - simpleviewclass.py:1.10

Jim Fulton jim at zope.com
Sun Sep 21 13:32:33 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/pagetemplate
In directory cvs.zope.org:/tmp/cvs-serv14431/src/zope/app/pagetemplate

Modified Files:
	simpleviewclass.py 
Log Message:
No-longer use context wrappers.

Changed to use zope.app.publisher.browser.BrowserView, rather than
zope.publisher.browser.BrowserView so that the views are locations.


=== Zope3/src/zope/app/pagetemplate/simpleviewclass.py 1.9 => 1.10 ===
--- Zope3/src/zope/app/pagetemplate/simpleviewclass.py:1.9	Fri Jun  6 16:44:31 2003
+++ Zope3/src/zope/app/pagetemplate/simpleviewclass.py	Sun Sep 21 13:32:33 2003
@@ -17,10 +17,9 @@
 """
 
 import sys
-from zope.publisher.browser import BrowserView
+from zope.app.publisher.browser import BrowserView
 from zope.publisher.interfaces.browser import IBrowserPublisher
 from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile
-from zope.context import ContextMethod
 from zope.publisher.interfaces import NotFound
 from zope.interface import implements
 
@@ -30,14 +29,12 @@
 
     def browserDefault(self, request):
         return self, ()
-    browserDefault = ContextMethod(browserDefault)
 
     def publishTraverse(self, request, name):
         if name == 'index.html':
             return self.index
 
         raise NotFound(self, name, request)
-    publishTraverse = ContextMethod(publishTraverse)
 
     # XXX: we need some unittests for this !!!
     def __getitem__(self, name):
@@ -45,7 +42,6 @@
 
     def __call__(self, template_usage=u'', *args, **kw):
         return self.index(template_usage, *args, **kw)
-    __call__ = ContextMethod(__call__)
 
 def SimpleViewClass(src, offering=None, used_for=None, bases=(), usage=u''):
     if offering is None:




More information about the Zope3-Checkins mailing list