zope.app.pagetemplate-3.11.2/000755 000766 000024 00000000000 11447373633 015720 5ustar00macstaff000000 000000 zope.app.pagetemplate-3.11.2/CHANGES.txt000644 000766 000024 00000005100 11447373626 017527 0ustar00macstaff000000 000000 ======= Changes ======= 3.11.2 (2010-09-25) ------------------- - Declared test dependency on ``zope.component [test]`` as it is needed to run the tests. 3.11.1 (2010-09-01) ------------------- - Added metaconfigure.registerType BBB import because some packages use it. - Using doctest from standard library instead of `zope.testing.doctest`. 3.11.0 (2010-04-26) ------------------- - Moved tales:expressiontype directive down into zope.browserpage. 3.10.1 (2010-01-04) ------------------- - Fixed the `zope.browserpage` imports in the ``namedtemplate`` module. 3.10.0 (2009-12-22) ------------------- - Moved named template implementation to zope.browserpage. 3.9.0 (2009-12-22) ------------------ - Moved viewpagetemplatefile, simpleviewclass and metaconfigure.registerType into the zope.browserpage package, reversing the dependency. 3.8.0 (2009-12-16) ------------------ - Refactored nested macro test from a functional test into a unit test. This allowed to remove the last outside zope.app dependencies. - Fixed undeclared testing dependency on zope.app.component. - Copy trivial NoTraverser class from zope.app.publication to avoid a ZCML dependency on that package. - Correct testing dependency to point to zope.securitypolicy instead of its zope.app variant. The app version is no longer required since 3.4.1. - Removed the ``inline-evaluation`` extra referring to zope.app.interpreter. There's no code or ZCML left pointing to that package. 3.7.1 (2009-05-27) ------------------ - Restored ``zope.app.pagetemplate.engine`` module, using BBB imports from ``zope.pagetemplate.engine``. 3.7.0 (2009-05-25) ------------------ - Moved the ``engine`` module and associated testing machinery to ``zope.pagetemplate`` (version 3.5.0). 3.6.0 (2009-05-18) ------------------ * Moved ``namedtemplate.*`` from ``zope.formlib`` here as it is more about a page template engine than a formular library. This also breaks some dependencies on ``zope.formlib``. * Added doctests to long_description to show up on pypi. 3.5.0 (2009-02-01) ------------------ * Use ``zope.container`` instead of ``zope.app.container``. 3.4.1 (2008-07-30) ------------------ * Substitute zope.app.zapi by direct calls to its wrapped apis. See http://launchpad.net/bugs/219302 * Fix deprecation warning in ftesting.zcml: ZopeSecurityPolicy now lives in zope.securitypolicy. 3.4.0 (2007-09-28) ------------------ * Initial release as standalone package. * Dependency on zope.app.interpreter moved to an extra [inline-evaluation]. It is only needed by zope.app.pythonpage, which is an oddity. zope.app.pagetemplate-3.11.2/COPYRIGHT.txt000644 000766 000024 00000000040 11447373626 020025 0ustar00macstaff000000 000000 Zope Foundation and Contributorszope.app.pagetemplate-3.11.2/LICENSE.txt000644 000766 000024 00000004026 11447373626 017547 0ustar00macstaff000000 000000 Zope Public License (ZPL) Version 2.1 A copyright notice accompanies this license document that identifies the copyright holders. This license has been certified as open source. It has also been designated as GPL compatible by the Free Software Foundation (FSF). Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions in source code must retain the accompanying copyright notice, this list of conditions, and the following disclaimer. 2. Redistributions in binary form must reproduce the accompanying copyright notice, this list of conditions, and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Names of the copyright holders must not be used to endorse or promote products derived from this software without prior written permission from the copyright holders. 4. The right to distribute this software or to use it for any purpose does not give you the right to use Servicemarks (sm) or Trademarks (tm) of the copyright holders. Use of them is covered by separate agreement with the copyright holders. 5. If any files are modified, you must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. Disclaimer THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. zope.app.pagetemplate-3.11.2/PKG-INFO000644 000766 000024 00000010524 11447373633 017017 0ustar00macstaff000000 000000 Metadata-Version: 1.0 Name: zope.app.pagetemplate Version: 3.11.2 Summary: PageTemplate integration for Zope 3 Home-page: http://pypi.python.org/pypi/zope.app.pagetemplate Author: Zope Corporation and Contributors Author-email: zope-dev@zope.org License: ZPL 2.1 Description: The ``zope.app.pagetemplate`` package integrates the Page Template templating system (``zope.pagetemplate``) into the Zope 3 application server. In particular, it provides: * a TALES engine implementation that uses Zope's security system for checking access, * TALES namespace adapters for easy access to DublinCore metadata (e.g. ``obj/zope:title``) and URL quoting (e.g. ``obj/@@absolute_url/url:quote``). .. contents:: ======= Changes ======= 3.11.2 (2010-09-25) ------------------- - Declared test dependency on ``zope.component [test]`` as it is needed to run the tests. 3.11.1 (2010-09-01) ------------------- - Added metaconfigure.registerType BBB import because some packages use it. - Using doctest from standard library instead of `zope.testing.doctest`. 3.11.0 (2010-04-26) ------------------- - Moved tales:expressiontype directive down into zope.browserpage. 3.10.1 (2010-01-04) ------------------- - Fixed the `zope.browserpage` imports in the ``namedtemplate`` module. 3.10.0 (2009-12-22) ------------------- - Moved named template implementation to zope.browserpage. 3.9.0 (2009-12-22) ------------------ - Moved viewpagetemplatefile, simpleviewclass and metaconfigure.registerType into the zope.browserpage package, reversing the dependency. 3.8.0 (2009-12-16) ------------------ - Refactored nested macro test from a functional test into a unit test. This allowed to remove the last outside zope.app dependencies. - Fixed undeclared testing dependency on zope.app.component. - Copy trivial NoTraverser class from zope.app.publication to avoid a ZCML dependency on that package. - Correct testing dependency to point to zope.securitypolicy instead of its zope.app variant. The app version is no longer required since 3.4.1. - Removed the ``inline-evaluation`` extra referring to zope.app.interpreter. There's no code or ZCML left pointing to that package. 3.7.1 (2009-05-27) ------------------ - Restored ``zope.app.pagetemplate.engine`` module, using BBB imports from ``zope.pagetemplate.engine``. 3.7.0 (2009-05-25) ------------------ - Moved the ``engine`` module and associated testing machinery to ``zope.pagetemplate`` (version 3.5.0). 3.6.0 (2009-05-18) ------------------ * Moved ``namedtemplate.*`` from ``zope.formlib`` here as it is more about a page template engine than a formular library. This also breaks some dependencies on ``zope.formlib``. * Added doctests to long_description to show up on pypi. 3.5.0 (2009-02-01) ------------------ * Use ``zope.container`` instead of ``zope.app.container``. 3.4.1 (2008-07-30) ------------------ * Substitute zope.app.zapi by direct calls to its wrapped apis. See http://launchpad.net/bugs/219302 * Fix deprecation warning in ftesting.zcml: ZopeSecurityPolicy now lives in zope.securitypolicy. 3.4.0 (2007-09-28) ------------------ * Initial release as standalone package. * Dependency on zope.app.interpreter moved to an extra [inline-evaluation]. It is only needed by zope.app.pythonpage, which is an oddity. Platform: UNKNOWN Classifier: Environment :: Web Environment Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: Zope Public License Classifier: Programming Language :: Python Classifier: Framework :: Zope3 zope.app.pagetemplate-3.11.2/README.txt000644 000766 000024 00000000642 11447373626 017422 0ustar00macstaff000000 000000 The ``zope.app.pagetemplate`` package integrates the Page Template templating system (``zope.pagetemplate``) into the Zope 3 application server. In particular, it provides: * a TALES engine implementation that uses Zope's security system for checking access, * TALES namespace adapters for easy access to DublinCore metadata (e.g. ``obj/zope:title``) and URL quoting (e.g. ``obj/@@absolute_url/url:quote``). zope.app.pagetemplate-3.11.2/bootstrap.py000644 000766 000024 00000003372 11447373626 020316 0ustar00macstaff000000 000000 ############################################################################## # # Copyright (c) 2006 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (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. # ############################################################################## """Bootstrap a buildout-based project Simply run this script in a directory containing a buildout.cfg. The script accepts buildout command-line options, so you can use the -c option to specify an alternate configuration file. $Id: bootstrap.py 116904 2010-09-25 13:20:53Z icemac $ """ import os, shutil, sys, tempfile, urllib2 tmpeggs = tempfile.mkdtemp() ez = {} exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py' ).read() in ez ez['use_setuptools'](to_dir=tmpeggs, download_delay=0) import pkg_resources cmd = 'from setuptools.command.easy_install import main; main()' if sys.platform == 'win32': cmd = '"%s"' % cmd # work around spawn lamosity on windows ws = pkg_resources.working_set assert os.spawnle( os.P_WAIT, sys.executable, sys.executable, '-c', cmd, '-mqNxd', tmpeggs, 'zc.buildout', dict(os.environ, PYTHONPATH= ws.find(pkg_resources.Requirement.parse('setuptools')).location ), ) == 0 ws.add_entry(tmpeggs) ws.require('zc.buildout') import zc.buildout.buildout zc.buildout.buildout.main(sys.argv[1:] + ['bootstrap']) shutil.rmtree(tmpeggs) zope.app.pagetemplate-3.11.2/buildout.cfg000644 000766 000024 00000000156 11447373626 020234 0ustar00macstaff000000 000000 [buildout] develop = . parts = test [test] recipe = zc.recipe.testrunner eggs = zope.app.pagetemplate [test] zope.app.pagetemplate-3.11.2/setup.cfg000644 000766 000024 00000000073 11447373633 017541 0ustar00macstaff000000 000000 [egg_info] tag_build = tag_date = 0 tag_svn_revision = 0 zope.app.pagetemplate-3.11.2/setup.py000644 000766 000024 00000005132 11447373626 017435 0ustar00macstaff000000 000000 ############################################################################## # # Copyright (c) 2006-2009 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (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. # ############################################################################## # This package is developed by the Zope Toolkit project, documented here: # http://docs.zope.org/zopetoolkit # When developing and releasing this package, please follow the documented # Zope Toolkit policies as described by this documentation. ############################################################################## from setuptools import setup, find_packages import os.path def read(*rnames): return open(os.path.join(os.path.dirname(__file__), *rnames)).read() version = '3.11.2' setup(name='zope.app.pagetemplate', version=version, url='http://pypi.python.org/pypi/zope.app.pagetemplate', author='Zope Corporation and Contributors', author_email='zope-dev@zope.org', description='PageTemplate integration for Zope 3', long_description=( read('README.txt') + '\n\n.. contents::\n\n' + read('CHANGES.txt') ), license='ZPL 2.1', classifiers=['Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: Zope Public License', 'Programming Language :: Python', 'Framework :: Zope3', ], packages=find_packages('src'), package_dir={'': 'src'}, namespace_packages=['zope', 'zope.app'], include_package_data=True, install_requires=[ 'setuptools', 'zope.browserpage>=3.12.0', 'zope.component [hook]', 'zope.configuration', 'zope.dublincore', 'zope.i18nmessageid', 'zope.interface', 'zope.pagetemplate>=3.5.0', 'zope.schema', 'zope.security [untrustedpython]', 'zope.size', 'zope.tales', 'zope.traversing', ], extras_require={ "test": [ 'zope.component [hook,test]', 'zope.container', 'zope.publisher', ], }, zip_safe=False, ) zope.app.pagetemplate-3.11.2/src/000755 000766 000024 00000000000 11447373633 016507 5ustar00macstaff000000 000000 zope.app.pagetemplate-3.11.2/src/zope/000755 000766 000024 00000000000 11447373633 017464 5ustar00macstaff000000 000000 zope.app.pagetemplate-3.11.2/src/zope.app.pagetemplate.egg-info/000755 000766 000024 00000000000 11447373633 024404 5ustar00macstaff000000 000000 zope.app.pagetemplate-3.11.2/src/zope.app.pagetemplate.egg-info/PKG-INFO000644 000766 000024 00000010524 11447373632 025502 0ustar00macstaff000000 000000 Metadata-Version: 1.0 Name: zope.app.pagetemplate Version: 3.11.2 Summary: PageTemplate integration for Zope 3 Home-page: http://pypi.python.org/pypi/zope.app.pagetemplate Author: Zope Corporation and Contributors Author-email: zope-dev@zope.org License: ZPL 2.1 Description: The ``zope.app.pagetemplate`` package integrates the Page Template templating system (``zope.pagetemplate``) into the Zope 3 application server. In particular, it provides: * a TALES engine implementation that uses Zope's security system for checking access, * TALES namespace adapters for easy access to DublinCore metadata (e.g. ``obj/zope:title``) and URL quoting (e.g. ``obj/@@absolute_url/url:quote``). .. contents:: ======= Changes ======= 3.11.2 (2010-09-25) ------------------- - Declared test dependency on ``zope.component [test]`` as it is needed to run the tests. 3.11.1 (2010-09-01) ------------------- - Added metaconfigure.registerType BBB import because some packages use it. - Using doctest from standard library instead of `zope.testing.doctest`. 3.11.0 (2010-04-26) ------------------- - Moved tales:expressiontype directive down into zope.browserpage. 3.10.1 (2010-01-04) ------------------- - Fixed the `zope.browserpage` imports in the ``namedtemplate`` module. 3.10.0 (2009-12-22) ------------------- - Moved named template implementation to zope.browserpage. 3.9.0 (2009-12-22) ------------------ - Moved viewpagetemplatefile, simpleviewclass and metaconfigure.registerType into the zope.browserpage package, reversing the dependency. 3.8.0 (2009-12-16) ------------------ - Refactored nested macro test from a functional test into a unit test. This allowed to remove the last outside zope.app dependencies. - Fixed undeclared testing dependency on zope.app.component. - Copy trivial NoTraverser class from zope.app.publication to avoid a ZCML dependency on that package. - Correct testing dependency to point to zope.securitypolicy instead of its zope.app variant. The app version is no longer required since 3.4.1. - Removed the ``inline-evaluation`` extra referring to zope.app.interpreter. There's no code or ZCML left pointing to that package. 3.7.1 (2009-05-27) ------------------ - Restored ``zope.app.pagetemplate.engine`` module, using BBB imports from ``zope.pagetemplate.engine``. 3.7.0 (2009-05-25) ------------------ - Moved the ``engine`` module and associated testing machinery to ``zope.pagetemplate`` (version 3.5.0). 3.6.0 (2009-05-18) ------------------ * Moved ``namedtemplate.*`` from ``zope.formlib`` here as it is more about a page template engine than a formular library. This also breaks some dependencies on ``zope.formlib``. * Added doctests to long_description to show up on pypi. 3.5.0 (2009-02-01) ------------------ * Use ``zope.container`` instead of ``zope.app.container``. 3.4.1 (2008-07-30) ------------------ * Substitute zope.app.zapi by direct calls to its wrapped apis. See http://launchpad.net/bugs/219302 * Fix deprecation warning in ftesting.zcml: ZopeSecurityPolicy now lives in zope.securitypolicy. 3.4.0 (2007-09-28) ------------------ * Initial release as standalone package. * Dependency on zope.app.interpreter moved to an extra [inline-evaluation]. It is only needed by zope.app.pythonpage, which is an oddity. Platform: UNKNOWN Classifier: Environment :: Web Environment Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: Zope Public License Classifier: Programming Language :: Python Classifier: Framework :: Zope3 zope.app.pagetemplate-3.11.2/src/zope.app.pagetemplate.egg-info/SOURCES.txt000644 000766 000024 00000003323 11447373632 026270 0ustar00macstaff000000 000000 CHANGES.txt COPYRIGHT.txt LICENSE.txt README.txt bootstrap.py buildout.cfg setup.py src/zope/__init__.py src/zope.app.pagetemplate.egg-info/PKG-INFO src/zope.app.pagetemplate.egg-info/SOURCES.txt src/zope.app.pagetemplate.egg-info/dependency_links.txt src/zope.app.pagetemplate.egg-info/namespace_packages.txt src/zope.app.pagetemplate.egg-info/not-zip-safe src/zope.app.pagetemplate.egg-info/requires.txt src/zope.app.pagetemplate.egg-info/top_level.txt src/zope/app/__init__.py src/zope/app/pagetemplate/__init__.py src/zope/app/pagetemplate/configure.zcml src/zope/app/pagetemplate/engine.py src/zope/app/pagetemplate/i18n.py src/zope/app/pagetemplate/interfaces.py src/zope/app/pagetemplate/meta.zcml src/zope/app/pagetemplate/metaconfigure.py src/zope/app/pagetemplate/namedtemplate.py src/zope/app/pagetemplate/simpleviewclass.py src/zope/app/pagetemplate/talesapi.py src/zope/app/pagetemplate/urlquote.py src/zope/app/pagetemplate/viewpagetemplatefile.py src/zope/app/pagetemplate/tests/__init__.py src/zope/app/pagetemplate/tests/inner.pt src/zope/app/pagetemplate/tests/intermediate.pt src/zope/app/pagetemplate/tests/outer.pt src/zope/app/pagetemplate/tests/test_binding.py src/zope/app/pagetemplate/tests/test_engine.py src/zope/app/pagetemplate/tests/test_namedtemplate.py src/zope/app/pagetemplate/tests/test_nested.py src/zope/app/pagetemplate/tests/test_talesapi.py src/zope/app/pagetemplate/tests/test_urlquote.py src/zope/app/pagetemplate/tests/testusage.pt src/zope/app/pagetemplate/tests/testpackage/__init__.py src/zope/app/pagetemplate/tests/testpackage/content.py src/zope/app/pagetemplate/tests/testpackage/default.pt src/zope/app/pagetemplate/tests/testpackage/nothing.pt src/zope/app/pagetemplate/tests/testpackage/view.ptzope.app.pagetemplate-3.11.2/src/zope.app.pagetemplate.egg-info/dependency_links.txt000644 000766 000024 00000000001 11447373632 030451 0ustar00macstaff000000 000000 zope.app.pagetemplate-3.11.2/src/zope.app.pagetemplate.egg-info/namespace_packages.txt000644 000766 000024 00000000016 11447373632 030733 0ustar00macstaff000000 000000 zope zope.app zope.app.pagetemplate-3.11.2/src/zope.app.pagetemplate.egg-info/not-zip-safe000644 000766 000024 00000000001 11447373627 026635 0ustar00macstaff000000 000000 zope.app.pagetemplate-3.11.2/src/zope.app.pagetemplate.egg-info/requires.txt000644 000766 000024 00000000451 11447373632 027003 0ustar00macstaff000000 000000 setuptools zope.browserpage>=3.12.0 zope.component [hook] zope.configuration zope.dublincore zope.i18nmessageid zope.interface zope.pagetemplate>=3.5.0 zope.schema zope.security [untrustedpython] zope.size zope.tales zope.traversing [test] zope.component [hook,test] zope.container zope.publisherzope.app.pagetemplate-3.11.2/src/zope.app.pagetemplate.egg-info/top_level.txt000644 000766 000024 00000000005 11447373632 027130 0ustar00macstaff000000 000000 zope zope.app.pagetemplate-3.11.2/src/zope/__init__.py000644 000766 000024 00000000310 11447373626 021571 0ustar00macstaff000000 000000 # this is a namespace package try: import pkg_resources pkg_resources.declare_namespace(__name__) except ImportError: import pkgutil __path__ = pkgutil.extend_path(__path__, __name__) zope.app.pagetemplate-3.11.2/src/zope/app/000755 000766 000024 00000000000 11447373633 020244 5ustar00macstaff000000 000000 zope.app.pagetemplate-3.11.2/src/zope/app/__init__.py000644 000766 000024 00000000310 11447373626 022351 0ustar00macstaff000000 000000 # this is a namespace package try: import pkg_resources pkg_resources.declare_namespace(__name__) except ImportError: import pkgutil __path__ = pkgutil.extend_path(__path__, __name__) zope.app.pagetemplate-3.11.2/src/zope/app/pagetemplate/000755 000766 000024 00000000000 11447373633 022714 5ustar00macstaff000000 000000 zope.app.pagetemplate-3.11.2/src/zope/app/pagetemplate/__init__.py000644 000766 000024 00000001455 11447373626 025034 0ustar00macstaff000000 000000 ############################################################################## # # Copyright (c) 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (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. # ############################################################################## """Zope-specific Page Templates $Id: __init__.py 116904 2010-09-25 13:20:53Z icemac $ """ __docformat__ = 'restructuredtext' from zope.browserpage import ViewPageTemplateFile zope.app.pagetemplate-3.11.2/src/zope/app/pagetemplate/configure.zcml000644 000766 000024 00000002775 11447373626 025601 0ustar00macstaff000000 000000 zope.app.pagetemplate-3.11.2/src/zope/app/pagetemplate/engine.py000644 000766 000024 00000003172 11447373626 024540 0ustar00macstaff000000 000000 ############################################################################## # # Copyright (c) 2009 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (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. # ############################################################################## # BBB imports: do not remove from zope.pagetemplate.engine import InlineCodeError from zope.pagetemplate.engine import ZopeTraverser from zope.pagetemplate.engine import zopeTraverser from zope.pagetemplate.engine import trustedZopeTraverser from zope.pagetemplate.engine import ZopePathExpr from zope.pagetemplate.engine import TrustedZopePathExpr from zope.pagetemplate.engine import ZopePythonExpr from zope.pagetemplate.engine import ZopeContextBase from zope.pagetemplate.engine import ZopeContext from zope.pagetemplate.engine import TrustedZopeContext from zope.pagetemplate.engine import AdapterNamespaces from zope.pagetemplate.engine import ZopeBaseEngine from zope.pagetemplate.engine import ZopeEngine from zope.pagetemplate.engine import TrustedZopeEngine from zope.pagetemplate.engine import TraversableModuleImporter from zope.pagetemplate.engine import Engine from zope.pagetemplate.engine import TrustedEngine from zope.pagetemplate.engine import AppPT from zope.pagetemplate.engine import TrustedAppPT zope.app.pagetemplate-3.11.2/src/zope/app/pagetemplate/i18n.py000644 000766 000024 00000001655 11447373626 024056 0ustar00macstaff000000 000000 ############################################################################## # # Copyright (c) 2003 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (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. # ############################################################################## """Customization of zope.i18n for the Zope application server $Id: i18n.py 116904 2010-09-25 13:20:53Z icemac $ """ __docformat__ = 'restructuredtext' # import this as _ to create i18n messages in the zope domain from zope.i18nmessageid import MessageFactory ZopeMessageFactory = MessageFactory('zope') zope.app.pagetemplate-3.11.2/src/zope/app/pagetemplate/interfaces.py000644 000766 000024 00000002243 11447373626 025414 0ustar00macstaff000000 000000 ############################################################################## # # Copyright (c) 2003 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (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. # ############################################################################## """Interfaces for apis to make available to TALES $Id: interfaces.py 116904 2010-09-25 13:20:53Z icemac $ """ __docformat__ = 'restructuredtext' import zope.interface class IURLQuote(zope.interface.Interface): def quote(): """Return the objects URL quote representation.""" def quote_plus(): """Return the objects URL quote_plus representation.""" def unquote(): """Return the objects URL unquote representation.""" def unquote_plus(): """Return the objects URL unquote_plus representation.""" zope.app.pagetemplate-3.11.2/src/zope/app/pagetemplate/meta.zcml000644 000766 000024 00000000212 11447373626 024526 0ustar00macstaff000000 000000 zope.app.pagetemplate-3.11.2/src/zope/app/pagetemplate/metaconfigure.py000644 000766 000024 00000002046 11447373626 026122 0ustar00macstaff000000 000000 ############################################################################## # # Copyright (c) 2003 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (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. # ############################################################################## """ZCML configuration directives for configuring the default zope: namespace in TALES. $Id: metaconfigure.py 116904 2010-09-25 13:20:53Z icemac $ """ __docformat__ = 'restructuredtext' # BBB from zope.browserpage.metaconfigure import clear from zope.browserpage.metadirectives import IExpressionTypeDirective from zope.browserpage.metaconfigure import expressiontype from zope.browserpage.metaconfigure import registerType zope.app.pagetemplate-3.11.2/src/zope/app/pagetemplate/namedtemplate.py000644 000766 000024 00000002004 11447373626 026104 0ustar00macstaff000000 000000 ############################################################################## # # Copyright (c) 2005-2009 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (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. # ############################################################################## """ $Id: namedtemplate.py 116904 2010-09-25 13:20:53Z icemac $ """ # BBB from zope.browserpage.namedtemplate import implementation from zope.browserpage.namedtemplate import INamedTemplate from zope.browserpage.namedtemplate import NamedTemplate from zope.browserpage.namedtemplate import NamedTemplateImplementation from zope.browserpage.namedtemplate import NamedTemplatePathAdapter zope.app.pagetemplate-3.11.2/src/zope/app/pagetemplate/simpleviewclass.py000644 000766 000024 00000001673 11447373626 026511 0ustar00macstaff000000 000000 ############################################################################## # # Copyright (c) 2001, 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (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. # ############################################################################## """Simple View Class $Id: simpleviewclass.py 116904 2010-09-25 13:20:53Z icemac $ """ __docformat__ = 'restructuredtext' # BBB from zope.browserpage.viewpagetemplatefile import ViewPageTemplateFile from zope.browserpage.simpleviewclass import simple from zope.browserpage.simpleviewclass import SimpleViewClass zope.app.pagetemplate-3.11.2/src/zope/app/pagetemplate/talesapi.py000644 000766 000024 00000005041 11447373626 025072 0ustar00macstaff000000 000000 ############################################################################## # # Copyright (c) 2003 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (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. # ############################################################################## """Implementation of the Zope TALES API $Id: talesapi.py 116904 2010-09-25 13:20:53Z icemac $ """ __docformat__ = 'restructuredtext' from zope.interface import implements from zope.size.interfaces import ISized from zope.security.interfaces import Unauthorized from zope.tales.interfaces import ITALESFunctionNamespace from zope.dublincore.interfaces import IDCDescriptiveProperties from zope.dublincore.interfaces import IDCTimes from zope.dublincore.interfaces import IZopeDublinCore from zope.traversing.api import getName class ZopeTalesAPI(object): implements(IDCTimes, IDCDescriptiveProperties, ITALESFunctionNamespace) def __init__(self, context): self.context = context def setEngine(self, engine): self._engine = engine def title(self): a = IZopeDublinCore(self.context, None) if a is None: raise AttributeError('title') return a.title title = property(title) def description(self): a = IZopeDublinCore(self.context, None) if a is None: raise AttributeError('description') return a.description description = property(description) def created(self): a = IZopeDublinCore(self.context, None) if a is None: raise AttributeError('created') return a.created created = property(created) def modified(self): a = IZopeDublinCore(self.context, None) if a is None: raise AttributeError('modified') return a.modified modified = property(modified) def name(self): return getName(self.context) def title_or_name(self): try: return getattr(self, 'title', '') or getName(self.context) except Unauthorized: return getName(self.context) def size(self): a = ISized(self.context, None) if a is None: raise AttributeError('size') return a.sizeForDisplay() zope.app.pagetemplate-3.11.2/src/zope/app/pagetemplate/tests/000755 000766 000024 00000000000 11447373633 024056 5ustar00macstaff000000 000000 zope.app.pagetemplate-3.11.2/src/zope/app/pagetemplate/urlquote.py000644 000766 000024 00000005510 11447373626 025151 0ustar00macstaff000000 000000 ############################################################################## # # Copyright (c) 2001, 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (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. # ############################################################################## """URL quoting for ZPT $Id: urlquote.py 116904 2010-09-25 13:20:53Z icemac $ """ __docformat__ = 'restructuredtext' import urllib from zope.interface import implements from zope.traversing.interfaces import IPathAdapter class URLQuote(object): r"""An adapter for URL quoting. It quotes unicode strings according to the recommendation in RFC 2718. Before the unicode string gets quoted, it gets encoded with UTF-8. >>> quoter = URLQuote(u'Roki\u0161kis') >>> quoter.quote() 'Roki%C5%A1kis' >>> quoter.quote_plus() 'Roki%C5%A1kis' And when unquoting, it assumes the unquoted string is encoded with UTF-8, and tries to convert it to unicode. >>> quoter = URLQuote('Roki%C5%A1kis') >>> quoter.unquote() u'Roki\u0161kis' >>> quoter.unquote_plus() u'Roki\u0161kis' If the unquoted string can't be converted to unicode, the unquoted string is returned. >>> quoter = URLQuote('S%F6derk%F6ping') >>> quoter.unquote() 'S\xf6derk\xf6ping' >>> quoter.unquote_plus() 'S\xf6derk\xf6ping' """ __used_for__ = basestring implements(IPathAdapter) def __init__(self, context): if not isinstance(context, basestring): context = str(context) elif isinstance(context, unicode): context = context.encode('utf-8') self.context = context def quote(self): """Return the object's URL quote representation.""" return urllib.quote(self.context) def quote_plus(self): """Return the object's URL quote_plus representation.""" return urllib.quote_plus(self.context) def unquote(self): """Return the object's URL unquote representation.""" unquoted = urllib.unquote(self.context) try: return unicode(unquoted, 'utf-8') except UnicodeDecodeError: return unquoted def unquote_plus(self): """Return the object's URL unquote_plus representation.""" unquoted = urllib.unquote_plus(self.context) try: return unicode(unquoted, 'utf-8') except UnicodeDecodeError: return unquoted zope.app.pagetemplate-3.11.2/src/zope/app/pagetemplate/viewpagetemplatefile.py000644 000766 000024 00000002074 11447373626 027476 0ustar00macstaff000000 000000 ############################################################################## # # Copyright (c) 2001, 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (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. # ############################################################################## """File-based page templates that can be used as methods on views. $Id: viewpagetemplatefile.py 116904 2010-09-25 13:20:53Z icemac $ """ __docformat__ = 'restructuredtext' # BBB from zope.browserpage.viewpagetemplatefile import ViewPageTemplateFile from zope.browserpage.viewpagetemplatefile import ViewMapper from zope.browserpage.viewpagetemplatefile import BoundPageTemplate from zope.browserpage.viewpagetemplatefile import NoTraverser zope.app.pagetemplate-3.11.2/src/zope/app/pagetemplate/tests/__init__.py000644 000766 000024 00000000075 11447373626 026173 0ustar00macstaff000000 000000 # # This file is necessary to make this directory a package. zope.app.pagetemplate-3.11.2/src/zope/app/pagetemplate/tests/inner.pt000644 000766 000024 00000000235 11447373626 025540 0ustar00macstaff000000 000000 hello
inner body slot content
zope.app.pagetemplate-3.11.2/src/zope/app/pagetemplate/tests/intermediate.pt000644 000766 000024 00000000356 11447373626 027103 0ustar00macstaff000000 000000 hello
body slot
intermediate body slot stuff
zope.app.pagetemplate-3.11.2/src/zope/app/pagetemplate/tests/outer.pt000644 000766 000024 00000000241 11447373626 025560 0ustar00macstaff000000 000000 Example: outer hello
outer body slot
zope.app.pagetemplate-3.11.2/src/zope/app/pagetemplate/tests/test_binding.py000644 000766 000024 00000003466 11447373626 027114 0ustar00macstaff000000 000000 ############################################################################## # # Copyright (c) 2001, 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (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. # ############################################################################## """Binding Tests $Id: test_binding.py 116904 2010-09-25 13:20:53Z icemac $ """ import unittest from zope.component import provideAdapter from zope.component.testing import PlacelessSetup from zope.container.interfaces import ISimpleReadContainer from zope.container.traversal import ContainerTraversable from zope.traversing.interfaces import ITraversable from zope.app.pagetemplate.tests.testpackage.content import Content from zope.app.pagetemplate.tests.testpackage.content import PTComponent def setUpTraversal(): from zope.traversing.testing import setUp setUp() provideAdapter(ContainerTraversable, (ISimpleReadContainer,), ITraversable) class BindingTestCase(PlacelessSetup, unittest.TestCase): def setUp(self): super(BindingTestCase, self).setUp() setUpTraversal() def test_binding(self): from zope.publisher.browser import TestRequest comp = PTComponent(Content(), TestRequest()) self.assertEqual(comp.index(), "42\n") self.assertEqual(comp.nothing(), "\n") self.assertEqual(comp.default(), "42\n") def test_suite(): return unittest.makeSuite(BindingTestCase) if __name__=='__main__': unittest.main() zope.app.pagetemplate-3.11.2/src/zope/app/pagetemplate/tests/test_engine.py000644 000766 000024 00000002523 11447373626 026740 0ustar00macstaff000000 000000 import unittest class BBBTests(unittest.TestCase): def test_BBB_imports(self): from zope.app.pagetemplate.engine import InlineCodeError from zope.app.pagetemplate.engine import ZopeTraverser from zope.app.pagetemplate.engine import zopeTraverser from zope.app.pagetemplate.engine import trustedZopeTraverser from zope.app.pagetemplate.engine import ZopePathExpr from zope.app.pagetemplate.engine import TrustedZopePathExpr from zope.app.pagetemplate.engine import ZopePythonExpr from zope.app.pagetemplate.engine import ZopeContextBase from zope.app.pagetemplate.engine import ZopeContext from zope.app.pagetemplate.engine import TrustedZopeContext from zope.app.pagetemplate.engine import AdapterNamespaces from zope.app.pagetemplate.engine import ZopeBaseEngine from zope.app.pagetemplate.engine import ZopeEngine from zope.app.pagetemplate.engine import TrustedZopeEngine from zope.app.pagetemplate.engine import TraversableModuleImporter from zope.app.pagetemplate.engine import Engine from zope.app.pagetemplate.engine import TrustedEngine from zope.app.pagetemplate.engine import AppPT from zope.app.pagetemplate.engine import TrustedAppPT def test_suite(): return unittest.makeSuite(BBBTests) zope.app.pagetemplate-3.11.2/src/zope/app/pagetemplate/tests/test_namedtemplate.py000644 000766 000024 00000000641 11447373626 030312 0ustar00macstaff000000 000000 """Test that the BBB imports in the namedtemplate module work. """ __docformat__ = "reStructuredText" import unittest from zope.component.testing import PlacelessSetup class Test(PlacelessSetup, unittest.TestCase): def testImportNamedtemplateModule(self): from zope.app.pagetemplate import namedtemplate def test_suite(): loader=unittest.TestLoader() return loader.loadTestsFromTestCase(Test) zope.app.pagetemplate-3.11.2/src/zope/app/pagetemplate/tests/test_nested.py000644 000766 000024 00000002700 11447373626 026752 0ustar00macstaff000000 000000 """Test that nested macro references do the right thing. """ __docformat__ = "reStructuredText" import unittest from zope.component.testing import PlacelessSetup from zope.publisher.browser import TestRequest from zope.browserpage import ViewPageTemplateFile class Context(object): pass class View(object): def __init__(self, context, request): self.context = context self.request = request EXPECTED = u"""\ Example: outer hello
inner body slot content
intermediate body slot stuff
""" class Test(PlacelessSetup, unittest.TestCase): def testMacroExtension(self): # This test demonstrates how macro extension allows a macro to extend # and re-offer a slot for a client template to fill. outer = ViewPageTemplateFile('outer.pt') intermediate = ViewPageTemplateFile('intermediate.pt') inner = ViewPageTemplateFile('inner.pt') context = Context() request = TestRequest() view = View(context, request) self.failUnless('outer body slot' in outer(view)) namespace = inner.pt_getContext(view, request) namespace['outer'] = outer namespace['intermediate'] = intermediate result = inner.pt_render(namespace) self.assertEquals(result, EXPECTED) def test_suite(): loader=unittest.TestLoader() return loader.loadTestsFromTestCase(Test) zope.app.pagetemplate-3.11.2/src/zope/app/pagetemplate/tests/test_talesapi.py000644 000766 000024 00000005073 11447373626 027300 0ustar00macstaff000000 000000 ############################################################################## # # Copyright (c) 2003 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (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. # ############################################################################## """Tales API Tests $Id: test_talesapi.py 116904 2010-09-25 13:20:53Z icemac $ """ from datetime import datetime from doctest import DocTestSuite from zope.interface import implements from zope.size.interfaces import ISized from zope.traversing.interfaces import IPhysicallyLocatable from zope.dublincore.interfaces import IZopeDublinCore from zope.app.pagetemplate.talesapi import ZopeTalesAPI class TestObject(object): implements(IZopeDublinCore, # not really, but who's checking. ;) IPhysicallyLocatable, # not really ISized) description = u"This object stores some number of apples" title = u"apple cart" created = datetime(2000, 10, 1, 23, 11, 00) modified = datetime(2003, 1, 2, 3, 4, 5) def sizeForSorting(self): return u'apples', 5 def sizeForDisplay(self): return u'5 apples' def getName(self): return u'apples' testObject = TestObject() def title(): """ >>> api = ZopeTalesAPI(testObject) >>> api.title u'apple cart' """ def description(): """ >>> api = ZopeTalesAPI(testObject) >>> api.description u'This object stores some number of apples' """ def name(): """ >>> api = ZopeTalesAPI(testObject) >>> api.name() u'apples' """ def title_or_name(): """ >>> api = ZopeTalesAPI(testObject) >>> api.title_or_name() u'apple cart' >>> testObject = TestObject() >>> testObject.title = u"" >>> api = ZopeTalesAPI(testObject) >>> api.title_or_name() u'apples' """ def size(): """ >>> api = ZopeTalesAPI(testObject) >>> api.size() u'5 apples' """ def modified(): """ >>> api = ZopeTalesAPI(testObject) >>> api.modified datetime.datetime(2003, 1, 2, 3, 4, 5) """ def created(): """ >>> api = ZopeTalesAPI(testObject) >>> api.created datetime.datetime(2000, 10, 1, 23, 11) """ def test_suite(): return DocTestSuite() zope.app.pagetemplate-3.11.2/src/zope/app/pagetemplate/tests/test_urlquote.py000644 000766 000024 00000003370 11447373626 027354 0ustar00macstaff000000 000000 ############################################################################## # # Copyright (c) 2003 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (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. # ############################################################################## """URLQuote Tests I kept the tests quite small, just covering that the functions actually do something (and don't really scramble stuff). We are relying on the python urllib to be functional to avoid test duplication. $Id: test_urlquote.py 116904 2010-09-25 13:20:53Z icemac $ """ import unittest from doctest import DocTestSuite from zope.app.pagetemplate.urlquote import URLQuote class TestObject(object): def __str__(self): return "www.google.de" def quote_simple(): """ >>> q = URLQuote(u"www.google.de") >>> q.quote() 'www.google.de' >>> q.unquote() u'www.google.de' >>> q.quote_plus() 'www.google.de' >>> q.unquote_plus() u'www.google.de' """ def quote_cast_needed(): """ >>> q = URLQuote(TestObject()) >>> q.quote() 'www.google.de' >>> q.unquote() u'www.google.de' >>> q.quote_plus() 'www.google.de' >>> q.unquote_plus() u'www.google.de' """ def test_suite(): return unittest.TestSuite(( DocTestSuite(), DocTestSuite('zope.app.pagetemplate.urlquote'), )) if __name__ == '__main__': unittest.main() zope.app.pagetemplate-3.11.2/src/zope/app/pagetemplate/tests/testpackage/000755 000766 000024 00000000000 11447373633 026351 5ustar00macstaff000000 000000 zope.app.pagetemplate-3.11.2/src/zope/app/pagetemplate/tests/testusage.pt000644 000766 000024 00000000070 11447373626 026426 0ustar00macstaff000000 000000 zope.app.pagetemplate-3.11.2/src/zope/app/pagetemplate/tests/testpackage/__init__.py000644 000766 000024 00000000075 11447373626 030466 0ustar00macstaff000000 000000 # # This file is necessary to make this directory a package. zope.app.pagetemplate-3.11.2/src/zope/app/pagetemplate/tests/testpackage/content.py000644 000766 000024 00000002135 11447373626 030400 0ustar00macstaff000000 000000 ############################################################################## # # Copyright (c) 2001, 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (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. # ############################################################################## """Test Content $Id: content.py 116904 2010-09-25 13:20:53Z icemac $ """ from zope.browserpage import ViewPageTemplateFile class Content(object): def getSomething(self): return 42 class PTComponent(object): def __init__(self, content, request=None): self.context = content self.request = request index = ViewPageTemplateFile("view.pt") default = ViewPageTemplateFile("default.pt") nothing = ViewPageTemplateFile("nothing.pt") zope.app.pagetemplate-3.11.2/src/zope/app/pagetemplate/tests/testpackage/default.pt000644 000766 000024 00000000113 11447373626 030337 0ustar00macstaff000000 000000 42 zope.app.pagetemplate-3.11.2/src/zope/app/pagetemplate/tests/testpackage/nothing.pt000644 000766 000024 00000000103 11447373626 030360 0ustar00macstaff000000 000000 zope.app.pagetemplate-3.11.2/src/zope/app/pagetemplate/tests/testpackage/view.pt000644 000766 000024 00000000053 11447373626 027670 0ustar00macstaff000000 000000