[Zope3-checkins] CVS: Zope3/src/zope/app/pagetemplate/tests/testpackage - __init__.py:1.1.2.1 content.py:1.1.2.1 view.pt:1.1.2.1
Jim Fulton
jim@zope.com
Mon, 23 Dec 2002 14:32:00 -0500
Update of /cvs-repository/Zope3/src/zope/app/pagetemplate/tests/testpackage
In directory cvs.zope.org:/tmp/cvs-serv19908/zope/app/pagetemplate/tests/testpackage
Added Files:
Tag: NameGeddon-branch
__init__.py content.py view.pt
Log Message:
Initial renaming before debugging
=== Added File Zope3/src/zope/app/pagetemplate/tests/testpackage/__init__.py ===
#
# This file is necessary to make this directory a package.
=== Added File Zope3/src/zope/app/pagetemplate/tests/testpackage/content.py ===
##############################################################################
#
# 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")
=== Added File Zope3/src/zope/app/pagetemplate/tests/testpackage/view.pt ===
<span tal:replace="context/getSomething"/>