[Zope-Checkins] CVS: Zope3/lib/python/Zope/PageTemplate/tests/testpackage - content.py:1.1.2.7

Jim Fulton jim@zope.com
Fri, 7 Jun 2002 10:41:55 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/PageTemplate/tests/testpackage
In directory cvs.zope.org:/tmp/cvs-serv12187/lib/python/Zope/PageTemplate/tests/testpackage

Modified Files:
      Tag: Zope-3x-branch
	content.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/PageTemplate/tests/testpackage/content.py 1.1.2.6 => 1.1.2.7 ===
 
 class PTComponent(object):
-    def __init__(self, content):
-        self.__content = content
-
-    def getContext(self):
-        return self.__content
+    def __init__(self, content, request):
+        self.content = content
 
     index = PageTemplateFile("view.pt", engine_name="unrestricted")