[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/PageTemplate/tests/testpackage - __init__.py:1.2 content.py:1.2 view.pt:1.2

Jim Fulton jim@zope.com
Mon, 10 Jun 2002 19:28:46 -0400


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

Added Files:
	__init__.py content.py view.pt 
Log Message:
Merged Zope-3x-branch into newly forked Zope3 CVS Tree.


=== Zope3/lib/python/Zope/App/PageTemplate/tests/testpackage/__init__.py 1.1 => 1.2 ===
+#
+# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
+# All Rights Reserved.
+# 
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+# 
+##############################################################################
+"""Sample content for testing."""


=== Zope3/lib/python/Zope/App/PageTemplate/tests/testpackage/content.py 1.1 => 1.2 ===
+#
+# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
+# All Rights Reserved.
+# 
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+# 
+##############################################################################
+import os
+
+from Zope.App.PageTemplate import ViewPageTemplateFile
+
+class Content:
+    def getSomething(self):
+        return 42
+
+
+class PTComponent(object):
+    def __init__(self, content, request=None):
+        self.context = content
+        self.request = request
+
+    index = ViewPageTemplateFile("view.pt")


=== Zope3/lib/python/Zope/App/PageTemplate/tests/testpackage/view.pt 1.1 => 1.2 ===