[Zope3-checkins] CVS: Zope3/src/zope/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:33:05 -0500


Update of /cvs-repository/Zope3/src/zope/pagetemplate/tests/testpackage
In directory cvs.zope.org:/tmp/cvs-serv19908/zope/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/pagetemplate/tests/testpackage/__init__.py ===
#
# This file is necessary to make this directory a package.


=== Added File Zope3/src/zope/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.viewpagetemplatefile import ViewPageTemplateFile

class Content:
    def getSomething(self):
        return 42


class PTComponent(object):
    def __init__(self, content, request):
        self.content = content

    index = PageTemplateFile("view.pt", engine_name="unrestricted")


=== Added File Zope3/src/zope/pagetemplate/tests/testpackage/view.pt ===
<span tal:replace="context/getSomething"/>