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.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.
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.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.
Project details
Release history Release notifications | RSS feed
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.10.0.zip
(29.4 kB
view hashes)
Close
Hashes for zope.app.pagetemplate-3.10.0.zip
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2b13f3500e513c44cbe621292c077da0c4c6fe948ed90e0ef1338579541e925 |
|
MD5 | 349a45df65eb4ffb62bdf627a7d2e070 |
|
BLAKE2b-256 | c33c9ae0072c34267438a9f38d7b2fdd603d70c945dd5c2752b9caad6db5d37a |