[Zope-Checkins] CVS: Zope3/lib/python/Zope/ComponentArchitecture/tests - TestViews.py:1.3
Jim Fulton
jim@zope.com
Tue, 18 Jun 2002 10:16:50 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/ComponentArchitecture/tests
In directory cvs.zope.org:/tmp/cvs-serv30310/lib/python/Zope/ComponentArchitecture/tests
Modified Files:
TestViews.py
Log Message:
Added the ability to specify templates in view pages rather than in
Python view classes.
Added the ability to supply a class when defiening views from
templates. In this case, the class becomes a base class of the
generated view class.
Added the ability to supply base classes to simple view classes.
Changed the zope page-template engine to use
Zope.App.Traversers.Traverser.Traverser directly, wo looking it up as
an adapter. I suspect that we'll stop making this pluggable, as it's
too much bother, given that adapters are used for each step anyway.
=== Zope3/lib/python/Zope/ComponentArchitecture/tests/TestViews.py 1.2 => 1.3 ===
def __init__(self,context, request):
- self._context = context
+ self.context = context
+ self.request = request
def index(self): return 'V1 here'