[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/Views/Browser/tests - testZPTPageEval.py:1.1.2.2
Jim Fulton
jim@zope.com
Fri, 7 Jun 2002 10:41:43 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/Views/Browser/tests
In directory cvs.zope.org:/tmp/cvs-serv12187/lib/python/Zope/App/OFS/Content/ZPTPage/Views/Browser/tests
Modified Files:
Tag: Zope-3x-branch
testZPTPageEval.py
Log Message:
Merging in Zope3InWonderland-branch, which implemented the following
proposals (see
http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/OldProposals):
- RenameAllowToRequire
- GroupClassRelatedDirectivesInClassDirective
- ViewInterfaceAndSimplification
- ConsistentUseOfSpacesAsDelimitersInZCMLAttributes
- TwoArgumentViewConstructors
- ImplementsInZCML
- SimpleViewCreationInZCML
- RemoveGetView
- ReplaceProtectWithAllow
- ViewMethodsAsViews
- MergeProtectionAndComponentDefinitions
There were also various security fixes resulting of better integration
of security with components.
=== Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/Views/Browser/tests/testZPTPageEval.py 1.1.2.1 => 1.1.2.2 ===
template = ContextWrapper(Template(), folder)
- view = ZPTPageEval(template)
+ view = ZPTPageEval(template, None)
self.assertEqual(view.index(request), 42)
self.assertEqual(template.called, (request, {}))
self.assertEqual(getattr(request, 'content-type'), 'text/x-test')