zope.pagetemplate


Namezope.pagetemplate JSON
Version 5.1 PyPI version JSON
download
home_pagehttps://github.com/zopefoundation/zope.pagetemplate
SummaryZope Page Templates
upload_time2024-02-08 10:49:48
maintainer
docs_urlNone
authorZope Foundation and Contributors
requires_python>=3.7
licenseZPL 2.1
keywords zope3 page template
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ===================
 zope.pagetemplate
===================

.. image:: https://img.shields.io/pypi/v/zope.pagetemplate.svg
        :target: https://pypi.python.org/pypi/zope.pagetemplate/
        :alt: Latest release

.. image:: https://img.shields.io/pypi/pyversions/zope.pagetemplate.svg
        :target: https://pypi.org/project/zope.pagetemplate/
        :alt: Supported Python versions

.. image:: https://github.com/zopefoundation/zope.pagetemplate/actions/workflows/tests.yml/badge.svg
        :target: https://github.com/zopefoundation/zope.pagetemplate/actions/workflows/tests.yml

.. image:: https://coveralls.io/repos/github/zopefoundation/zope.pagetemplate/badge.svg?branch=master
        :target: https://coveralls.io/github/zopefoundation/zope.pagetemplate?branch=master

.. image:: https://readthedocs.org/projects/zopepagetemplate/badge/?version=latest
        :target: https://zopepagetemplate.readthedocs.org/en/latest/
        :alt: Documentation Status


Page Templates provide an elegant templating mechanism that achieves a
clean separation of presentation and application logic while allowing
for designers to work with templates in their visual editing tools
(FrontPage, Dreamweaver, GoLive, etc.).

Page Templates are based on `a Template Attribute Language
<https://pypi.python.org/pypi/zope.tal>`_ with expressions provided by
`TALES <https://pypi.python.org/pypi/zope.tales>`_. For a description
of their syntax, see `the reference documentation
<https://pagetemplates.readthedocs.io/en/latest/>`_.

For detailed documentation on the usage of this package, see
https://zopepagetemplate.readthedocs.io


=========
 Changes
=========

5.1 (2024-02-08)
================

- Add support for Python 3.12.


5.0 (2023-02-07)
================

- Add support for ``zope.untrustedpython`` on Python 3. With it, Python
  expressions are now protected. It is activated using the ``untrusted`` extra.

- Add support for Python 3.11.

- Drop support for Python 2.7, 3.5, 3.6.


4.6.0 (2021-11-04)
==================

- Avoid traceback reference cycle in ``PageTemplate._cook``.

- Add support for Python 3.9 and 3.10.


4.5.0 (2020-02-10)
==================

- Add support for Python 3.8.

- Drop support for Python 3.4.


4.4.1 (2018-10-16)
==================

- Fix DeprecationWarnings for ``ComponentLookupError`` by
  importing them from ``zope.interface.interfaces``. See `issue 17
  <https://github.com/zopefoundation/zope.pagetemplate/issues/17>`_.

4.4 (2018-10-05)
================

- Add support for Python 3.7.

- Host documentation at https://zopepagetemplate.readthedocs.io/

4.3.0 (2017-09-04)
==================

- Add support for Python 3.5 and 3.6.

- Drop support for Python 2.6, 3.2 and 3.3.

- Certain internal test support objects in the ``tests`` package were
  removed or modified.

- The ``TraversableModuleImporter`` properly turns ``ImportError``
  into ``TraversalError``. Previously it was catching ``KeyError``,
  which cannot be raised.

- Reach 100% code coverage and maintain it through automated testing.

4.2.1 (2015-06-06)
==================

- Add support for Python 3.2.

4.2.0 (2015-06-02)
==================

- Allow short-circuit traversal for non-proxied dict subclasses.  See:
  https://github.com/zopefoundation/zope.pagetemplate/pull/3 .

- Add support for PyPy / PyPy3.

4.1.0 (2014-12-27)
==================

- Add support for Python 3.4.

- Add support for testing on Travis.

4.0.4 (2013-03-15)
==================

- Ensure that ``ZopePythonExpr`` and ``PythonExpr`` are separate classes even
  when ``zope.untrustedpython`` is not available.  Fixes a ZCML conflict error
  in ``zope.app.pagetemplate``.

4.0.3 (2013-02-28)
==================

- Only allow ``zope.untrustedpython`` to be a dependency in Python 2.

- Fix buildout to work properly.

4.0.2 (2013-02-22)
==================

- Migrate from ``zope.security.untrustedpython`` to ``zope.untrustedpython``.

- Make ``zope.untrustedpython`` an extra dependency.  Without it, python
  expressions are not protected, even though path expressions are still
  security wrapped.

- Add support for Python 3.3.

4.0.1 (2012-01-23)
==================

- LP#732972:  PageTemplateTracebackSupplement no longer passes
  ``check_macro_expansion=False`` to old templates which do not
  accept this argument.

4.0.0 (2012-12-13)
==================

- Replace deprecated ``zope.interface.classProvides`` usage with equivalent
  ``zope.interface.provider`` decorator.

- Replace deprecated ``zope.interface.implements`` usage with equivalent
  ``zope.interface.implementer`` decorator.

- Drop support for Python 2.4 and 2.5.

- PageTemplate.pt_render() has a new argument, ``check_macro_expansion``,
  defaulting to True.

- PageTemplateTracebackSupplement passes ``check_macro_expansion=False``, to
  avoid LP#732972.

3.6.3 (2011-09-21)
==================

- Fix test assertions to be compatible with ``zope.tal`` 3.6.

3.6.2 (2011-09-21)
==================

- Change interface for engine and program such that the return type of
  the ``cook`` method is a tuple ``(program, macros)``. This follows
  the interface for the TAL parser's ``getCode`` method.

  Fixes a legacy compatibility issue where code would expect an
  ``_v_macros`` volatile attribute which was missing.

3.6.1 (2011-08-23)
==================

- Fix issue with missing default value for ``strictinsert``.

3.6.0 (2011-08-20)
==================

- Replace StringIO stream class with a faster list-based implementation.

- Abstract out the template engine and program interfaces and allow
  implementation replacement via a utility registration.

- Remove ancient copyright from test files (LP: #607228)

3.5.2 (2010-07-08)
==================

- Fix ``PTRuntimeError`` exception messages to be consistent across Python
  versions, and compatibile with the output under Python 2.4.  (More
  readable than the previous output under Python 2.6 as well.)

3.5.1 (2010-04-30)
==================

- Remove use of ``zope.testing.doctestunit`` in favor of stdlib's doctest.

- Add dependency on "zope.security [untrustedpython]" because the ``engine``
  module uses it.

3.5.0 (2009-05-25)
==================

- Add test coverage reporting support.

- Move 'engine' module and related test scaffolding here from
  ``zope.app.pagetemplate`` package.

3.4.2 (2009-03-17)
==================

- Remove old zpkg-related DEPENDENCIES.cfg file.

- Change package's mailing list address to zope-dev at zope.org, as
  zope3-dev at zope.org is now retired.

- Change `cheeseshop` to `pypi` in the packages' homepage url.

3.4.1 (2009-01-27)
==================

- Fix test due to recent changes in zope.tal.


3.4.0 (2007-10-02)
==================

- Initial release independent of the Zope 3 tree.


3.2.0 (2006-01-05)
==================

- Corresponds to the version of the zope.pagetemplate package shipped
  as part of the Zope 3.2.0 release.

- ZPTPage macro expansion:  changed label text to match the corresponding
  label in Zope 2 and activated the name spaces for macro expansion
  in 'read'.  See http://www.zope.org/Collectors/Zope3-dev/199

- Coding style cleanups.


3.1.0 (2005-10-03)
==================

- Corresponds to the version of the zope.pagetemplate package shipped
  as part of the Zope 3.1.0 release.

- Fixed apidoc and Cookie, which were using wrong descriptor class
  (changed to 'property').  See http://www.zope.org/Collectors/Zope3-dev/387

- Documentation / style / testing cleanups.


3.0.0 (2004-11-07)
==================

- Corresponds to the version of the zope.pagetemplate package shipped
  as part of the Zope X3.0.0 release.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/zopefoundation/zope.pagetemplate",
    "name": "zope.pagetemplate",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "zope3 page template",
    "author": "Zope Foundation and Contributors",
    "author_email": "zope-dev@zope.dev",
    "download_url": "https://files.pythonhosted.org/packages/f7/df/452648f157f00c4876e60d60a5f6ee0da1bdc0653d1a8f85478dce607235/zope.pagetemplate-5.1.tar.gz",
    "platform": null,
    "description": "===================\n zope.pagetemplate\n===================\n\n.. image:: https://img.shields.io/pypi/v/zope.pagetemplate.svg\n        :target: https://pypi.python.org/pypi/zope.pagetemplate/\n        :alt: Latest release\n\n.. image:: https://img.shields.io/pypi/pyversions/zope.pagetemplate.svg\n        :target: https://pypi.org/project/zope.pagetemplate/\n        :alt: Supported Python versions\n\n.. image:: https://github.com/zopefoundation/zope.pagetemplate/actions/workflows/tests.yml/badge.svg\n        :target: https://github.com/zopefoundation/zope.pagetemplate/actions/workflows/tests.yml\n\n.. image:: https://coveralls.io/repos/github/zopefoundation/zope.pagetemplate/badge.svg?branch=master\n        :target: https://coveralls.io/github/zopefoundation/zope.pagetemplate?branch=master\n\n.. image:: https://readthedocs.org/projects/zopepagetemplate/badge/?version=latest\n        :target: https://zopepagetemplate.readthedocs.org/en/latest/\n        :alt: Documentation Status\n\n\nPage Templates provide an elegant templating mechanism that achieves a\nclean separation of presentation and application logic while allowing\nfor designers to work with templates in their visual editing tools\n(FrontPage, Dreamweaver, GoLive, etc.).\n\nPage Templates are based on `a Template Attribute Language\n<https://pypi.python.org/pypi/zope.tal>`_ with expressions provided by\n`TALES <https://pypi.python.org/pypi/zope.tales>`_. For a description\nof their syntax, see `the reference documentation\n<https://pagetemplates.readthedocs.io/en/latest/>`_.\n\nFor detailed documentation on the usage of this package, see\nhttps://zopepagetemplate.readthedocs.io\n\n\n=========\n Changes\n=========\n\n5.1 (2024-02-08)\n================\n\n- Add support for Python 3.12.\n\n\n5.0 (2023-02-07)\n================\n\n- Add support for ``zope.untrustedpython`` on Python 3. With it, Python\n  expressions are now protected. It is activated using the ``untrusted`` extra.\n\n- Add support for Python 3.11.\n\n- Drop support for Python 2.7, 3.5, 3.6.\n\n\n4.6.0 (2021-11-04)\n==================\n\n- Avoid traceback reference cycle in ``PageTemplate._cook``.\n\n- Add support for Python 3.9 and 3.10.\n\n\n4.5.0 (2020-02-10)\n==================\n\n- Add support for Python 3.8.\n\n- Drop support for Python 3.4.\n\n\n4.4.1 (2018-10-16)\n==================\n\n- Fix DeprecationWarnings for ``ComponentLookupError`` by\n  importing them from ``zope.interface.interfaces``. See `issue 17\n  <https://github.com/zopefoundation/zope.pagetemplate/issues/17>`_.\n\n4.4 (2018-10-05)\n================\n\n- Add support for Python 3.7.\n\n- Host documentation at https://zopepagetemplate.readthedocs.io/\n\n4.3.0 (2017-09-04)\n==================\n\n- Add support for Python 3.5 and 3.6.\n\n- Drop support for Python 2.6, 3.2 and 3.3.\n\n- Certain internal test support objects in the ``tests`` package were\n  removed or modified.\n\n- The ``TraversableModuleImporter`` properly turns ``ImportError``\n  into ``TraversalError``. Previously it was catching ``KeyError``,\n  which cannot be raised.\n\n- Reach 100% code coverage and maintain it through automated testing.\n\n4.2.1 (2015-06-06)\n==================\n\n- Add support for Python 3.2.\n\n4.2.0 (2015-06-02)\n==================\n\n- Allow short-circuit traversal for non-proxied dict subclasses.  See:\n  https://github.com/zopefoundation/zope.pagetemplate/pull/3 .\n\n- Add support for PyPy / PyPy3.\n\n4.1.0 (2014-12-27)\n==================\n\n- Add support for Python 3.4.\n\n- Add support for testing on Travis.\n\n4.0.4 (2013-03-15)\n==================\n\n- Ensure that ``ZopePythonExpr`` and ``PythonExpr`` are separate classes even\n  when ``zope.untrustedpython`` is not available.  Fixes a ZCML conflict error\n  in ``zope.app.pagetemplate``.\n\n4.0.3 (2013-02-28)\n==================\n\n- Only allow ``zope.untrustedpython`` to be a dependency in Python 2.\n\n- Fix buildout to work properly.\n\n4.0.2 (2013-02-22)\n==================\n\n- Migrate from ``zope.security.untrustedpython`` to ``zope.untrustedpython``.\n\n- Make ``zope.untrustedpython`` an extra dependency.  Without it, python\n  expressions are not protected, even though path expressions are still\n  security wrapped.\n\n- Add support for Python 3.3.\n\n4.0.1 (2012-01-23)\n==================\n\n- LP#732972:  PageTemplateTracebackSupplement no longer passes\n  ``check_macro_expansion=False`` to old templates which do not\n  accept this argument.\n\n4.0.0 (2012-12-13)\n==================\n\n- Replace deprecated ``zope.interface.classProvides`` usage with equivalent\n  ``zope.interface.provider`` decorator.\n\n- Replace deprecated ``zope.interface.implements`` usage with equivalent\n  ``zope.interface.implementer`` decorator.\n\n- Drop support for Python 2.4 and 2.5.\n\n- PageTemplate.pt_render() has a new argument, ``check_macro_expansion``,\n  defaulting to True.\n\n- PageTemplateTracebackSupplement passes ``check_macro_expansion=False``, to\n  avoid LP#732972.\n\n3.6.3 (2011-09-21)\n==================\n\n- Fix test assertions to be compatible with ``zope.tal`` 3.6.\n\n3.6.2 (2011-09-21)\n==================\n\n- Change interface for engine and program such that the return type of\n  the ``cook`` method is a tuple ``(program, macros)``. This follows\n  the interface for the TAL parser's ``getCode`` method.\n\n  Fixes a legacy compatibility issue where code would expect an\n  ``_v_macros`` volatile attribute which was missing.\n\n3.6.1 (2011-08-23)\n==================\n\n- Fix issue with missing default value for ``strictinsert``.\n\n3.6.0 (2011-08-20)\n==================\n\n- Replace StringIO stream class with a faster list-based implementation.\n\n- Abstract out the template engine and program interfaces and allow\n  implementation replacement via a utility registration.\n\n- Remove ancient copyright from test files (LP: #607228)\n\n3.5.2 (2010-07-08)\n==================\n\n- Fix ``PTRuntimeError`` exception messages to be consistent across Python\n  versions, and compatibile with the output under Python 2.4.  (More\n  readable than the previous output under Python 2.6 as well.)\n\n3.5.1 (2010-04-30)\n==================\n\n- Remove use of ``zope.testing.doctestunit`` in favor of stdlib's doctest.\n\n- Add dependency on \"zope.security [untrustedpython]\" because the ``engine``\n  module uses it.\n\n3.5.0 (2009-05-25)\n==================\n\n- Add test coverage reporting support.\n\n- Move 'engine' module and related test scaffolding here from\n  ``zope.app.pagetemplate`` package.\n\n3.4.2 (2009-03-17)\n==================\n\n- Remove old zpkg-related DEPENDENCIES.cfg file.\n\n- Change package's mailing list address to zope-dev at zope.org, as\n  zope3-dev at zope.org is now retired.\n\n- Change `cheeseshop` to `pypi` in the packages' homepage url.\n\n3.4.1 (2009-01-27)\n==================\n\n- Fix test due to recent changes in zope.tal.\n\n\n3.4.0 (2007-10-02)\n==================\n\n- Initial release independent of the Zope 3 tree.\n\n\n3.2.0 (2006-01-05)\n==================\n\n- Corresponds to the version of the zope.pagetemplate package shipped\n  as part of the Zope 3.2.0 release.\n\n- ZPTPage macro expansion:  changed label text to match the corresponding\n  label in Zope 2 and activated the name spaces for macro expansion\n  in 'read'.  See http://www.zope.org/Collectors/Zope3-dev/199\n\n- Coding style cleanups.\n\n\n3.1.0 (2005-10-03)\n==================\n\n- Corresponds to the version of the zope.pagetemplate package shipped\n  as part of the Zope 3.1.0 release.\n\n- Fixed apidoc and Cookie, which were using wrong descriptor class\n  (changed to 'property').  See http://www.zope.org/Collectors/Zope3-dev/387\n\n- Documentation / style / testing cleanups.\n\n\n3.0.0 (2004-11-07)\n==================\n\n- Corresponds to the version of the zope.pagetemplate package shipped\n  as part of the Zope X3.0.0 release.\n",
    "bugtrack_url": null,
    "license": "ZPL 2.1",
    "summary": "Zope Page Templates",
    "version": "5.1",
    "project_urls": {
        "Homepage": "https://github.com/zopefoundation/zope.pagetemplate"
    },
    "split_keywords": [
        "zope3",
        "page",
        "template"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a3fbb2e7ef002bb38c88e2ea8247415554c8f6f3661fcdeee0fbbe4eeeebea4c",
                "md5": "62a77eaecc4d96d5dda4c25b6b60b190",
                "sha256": "c2a49be21c13c8053ac83f93a4f6faae7e2799f165db3e65cd3a7d16a3cca8b1"
            },
            "downloads": -1,
            "filename": "zope.pagetemplate-5.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "62a77eaecc4d96d5dda4c25b6b60b190",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 44995,
            "upload_time": "2024-02-08T10:49:46",
            "upload_time_iso_8601": "2024-02-08T10:49:46.109491Z",
            "url": "https://files.pythonhosted.org/packages/a3/fb/b2e7ef002bb38c88e2ea8247415554c8f6f3661fcdeee0fbbe4eeeebea4c/zope.pagetemplate-5.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f7df452648f157f00c4876e60d60a5f6ee0da1bdc0653d1a8f85478dce607235",
                "md5": "d3e178d54b647c580c3fa1c9bd4734d2",
                "sha256": "99e14fa001f652320cae0a3deb2bd97088eb6302d58e4c71e1d633b88cca5eae"
            },
            "downloads": -1,
            "filename": "zope.pagetemplate-5.1.tar.gz",
            "has_sig": false,
            "md5_digest": "d3e178d54b647c580c3fa1c9bd4734d2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 42653,
            "upload_time": "2024-02-08T10:49:48",
            "upload_time_iso_8601": "2024-02-08T10:49:48.800786Z",
            "url": "https://files.pythonhosted.org/packages/f7/df/452648f157f00c4876e60d60a5f6ee0da1bdc0653d1a8f85478dce607235/zope.pagetemplate-5.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-08 10:49:48",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "zopefoundation",
    "github_project": "zope.pagetemplate",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "zope.pagetemplate"
}
        
Elapsed time: 0.22888s