Skip to main content

PageTemplate integration for Zope 3

Project 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,

* a ``ViewPageTemplateFile`` class that can be put on a browser page
class as an attribute and will function as a callable method whose
result is the rendered template, e.g.::

from zope.publisher import BrowserPage
from zope.browserpage import ViewPageTemplateFile

class HelloWorldPage(BrowserPage):
__call__ = ViewPageTemplateFile('helloworld.pt')

* 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.0 (2010-04-26)
-------------------

- Move 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zope.app.pagetemplate-3.11.0.tar.gz (9.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page