DocumentTemplate


NameDocumentTemplate JSON
Version 4.6 PyPI version JSON
download
home_pagehttps://github.com/zopefoundation/DocumentTemplate
SummaryDocument Templating Markup Language (DTML)
upload_time2023-11-13 07:36:46
maintainer
docs_urlNone
authorZope Foundation and Contributors
requires_python>=3.7
licenseZPL 2.1
keywords dtml template zope html sql web markup
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. image:: https://github.com/zopefoundation/DocumentTemplate/actions/workflows/tests.yml/badge.svg
   :target: https://github.com/zopefoundation/DocumentTemplate/actions/workflows/tests.yml

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

.. image:: https://img.shields.io/pypi/v/DocumentTemplate.svg
   :target: https://pypi.org/project/DocumentTemplate/
   :alt: Current version on PyPI

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

DocumentTemplate
================

This package implements the original Document Templating Markup Language
(DTML). It uses custom SGML tags to implement simple programmatic features,
such as variable replacement, conditional logic and loops.

Inside Zope environments page templates and TAL have superseded DTML for most
use cases.


Changelog
=========

4.6 (2023-11-13)
----------------

- Add official support for Python 3.12.


4.5 (2023-09-18)
----------------

- Add preliminary support for Python 3.12rc1.

- Be more resilient on sorting if the getter returns ``None``.
  (`#72 <https://github.com/zopefoundation/DocumentTemplate/pull/72>`_)


4.4 (2022-01-12)
----------------

- Drop support for Python 3.6.


4.3 (2022-12-21)
----------------

- Fix `restructured-text` format specification. Tests were silently skipped.


4.2 (2022-12-16)
----------------

- Fix insidious buildout configuration bug for tests against Zope 4.

- Add support for Python 3.11.


4.1 (2022-09-20)
----------------

- Set the ``tree-s`` cookie for ``dtml-tree`` tags with ``SameSite=Lax``.
  The tree tag never set this attribute. That causes modern browsers to show
  warnings in the browser console and break tree displays in the future.
  See https://hacks.mozilla.org/2020/08/changes-to-samesite-cookie-behavior/
  for information about the ``SameSite`` cookie attribute and why its handling
  in browsers is changing.

- Add support for Python 3.10.

- Drop support for Python 3.5.


4.0 (2020-11-12)
----------------

- Make ``ustr.ustr`` Python 3 compatible
  (`Zope#921 <https://github.com/zopefoundation/Zope/issues/921>`_)

- Add support for Python 3.9

- Restore ``sql_quote`` behavior of always returning native strings
  (`#54 <https://github.com/zopefoundation/DocumentTemplate/issues/54>`_)

- Fix broken tree tag
  (`#52 <https://github.com/zopefoundation/DocumentTemplate/issues/52>`_)

- Drop support for Python 2.

- Eventually drop BBB code leading to a deprecation warning in version 3.2+.
  (`#42 <https://github.com/zopefoundation/DocumentTemplate/issues/42>`_)

- Update `isort` to version 5.


3.2.2 (2020-02-04)
------------------

- de-fang ``sql_quote`` even more as quoting is too database-specific.
  (`#48 <https://github.com/zopefoundation/DocumentTemplate/issues/48>`_)


3.2.1 (2020-02-03)
------------------

- prevent a really strange ``AccessControl`` test failure when running
  Zope's ``alltests`` script by importing deprecated names from
  ``zope.sequencesort.ssort`` instead of ``sequence/SortEx.py`` in
  ``sequence/__init__.py``


3.2 (2020-02-03)
----------------

- no longer escape double quotes in ``sql_quote`` - that breaks PostgreSQL
  (`#48 <https://github.com/zopefoundation/DocumentTemplate/issues/48>`_)

- Added `DeprecationWarnings` for all deprecated files and names
  (`#42 <https://github.com/zopefoundation/DocumentTemplate/issues/42>`_)

- Import sorting done like Zope itself

- Applied extended linting configuration similar to Zope's own


3.1 (2020-01-31)
----------------

- Escape more characters in ``sql_quote``.  Taken over from PloneHotfix20200121.


3.1b2 (2019-05-16)
------------------

- Fix broken handling of SyntaxError under Python 3


3.1b1 (2019-05-13)
------------------

- Don't call HTTPExceptions that are looked up in TemplateDicts


3.0 (2019-05-09)
----------------

Changes since 2.13.2:

Breaking changes
++++++++++++++++

- Replace C code with a pure-Python implementation.

- Remove ``VSEval`` module. Please use DT_Util.EVal now.

- Remove ``DTtestExpr`` module. It contained nothing useful.

- Remove support for string exceptions in ``<dtml-except>``.
  (`#29 <https://github.com/zopefoundation/DocumentTemplate/pull/29>`_)

Features
++++++++

- Add support for Python 3.5, 3.6, 3.7, 3.8.

- Make the rendering encoding configurable to fix rendering on Zope 4.
  (`#43 <https://github.com/zopefoundation/DocumentTemplate/issues/43>`_)

- Add `__contains__` support to DocumentTemplate.TemplateDict.

Bug fixes
+++++++++

- Only decode input in ``html_quote`` when needed under Python 3
  (`Products.PythonScripts#28 <https://github.com/zopefoundation/Products.PythonScripts/issues/28`>_)

- Make sure all JSON-serialized data is text data and not bytes.
  (`#45 <https://github.com/zopefoundation/DocumentTemplate/issues/45>`_)

- Fix regression with exception handling in ``<dtml-except>`` with Python 2.
  (`#25 <https://github.com/zopefoundation/DocumentTemplate/issues/25>`_)

- Stabilized TreeTag rendering for objects without ``_p_oid`` values.
  (`#26 <https://github.com/zopefoundation/DocumentTemplate/issues/26>`_)

- Fix bugs with ``<dtml-in>``:

    - Raise proper error if prefix is not simple.
    - Fix complex multisort in Python 3.
    - Fix iteration over list of tuples in Python 3.

- Ensure html_quote is being applied to content.


2.13.2 (2011-12-12)
-------------------

- Restrict the available functions in `DocumentTemplate.sequence` to public
  API's of `zope.sequencesort`.


2.13.1 (2010-07-15)
-------------------

- LP #143273: Enable the dtml-var modifiers url_quote, url_unquote,
  url_quote_plus and url_unquote_plus to handle unicode strings.


2.13.0 (2010-06-19)
-------------------

- Released as separate package.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/zopefoundation/DocumentTemplate",
    "name": "DocumentTemplate",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "DTML template zope HTML SQL web markup",
    "author": "Zope Foundation and Contributors",
    "author_email": "zope-dev@zope.org",
    "download_url": "https://files.pythonhosted.org/packages/0b/37/6ddc9ff06cc16a402e5aa8908b99f212dc429507e9e78a457d95448c5083/DocumentTemplate-4.6.tar.gz",
    "platform": null,
    "description": ".. image:: https://github.com/zopefoundation/DocumentTemplate/actions/workflows/tests.yml/badge.svg\n   :target: https://github.com/zopefoundation/DocumentTemplate/actions/workflows/tests.yml\n\n.. image:: https://coveralls.io/repos/github/zopefoundation/DocumentTemplate/badge.svg?branch=master\n   :target: https://coveralls.io/github/zopefoundation/DocumentTemplate?branch=master\n\n.. image:: https://img.shields.io/pypi/v/DocumentTemplate.svg\n   :target: https://pypi.org/project/DocumentTemplate/\n   :alt: Current version on PyPI\n\n.. image:: https://img.shields.io/pypi/pyversions/DocumentTemplate.svg\n   :target: https://pypi.org/project/DocumentTemplate/\n   :alt: Supported Python versions\n\nDocumentTemplate\n================\n\nThis package implements the original Document Templating Markup Language\n(DTML). It uses custom SGML tags to implement simple programmatic features,\nsuch as variable replacement, conditional logic and loops.\n\nInside Zope environments page templates and TAL have superseded DTML for most\nuse cases.\n\n\nChangelog\n=========\n\n4.6 (2023-11-13)\n----------------\n\n- Add official support for Python 3.12.\n\n\n4.5 (2023-09-18)\n----------------\n\n- Add preliminary support for Python 3.12rc1.\n\n- Be more resilient on sorting if the getter returns ``None``.\n  (`#72 <https://github.com/zopefoundation/DocumentTemplate/pull/72>`_)\n\n\n4.4 (2022-01-12)\n----------------\n\n- Drop support for Python 3.6.\n\n\n4.3 (2022-12-21)\n----------------\n\n- Fix `restructured-text` format specification. Tests were silently skipped.\n\n\n4.2 (2022-12-16)\n----------------\n\n- Fix insidious buildout configuration bug for tests against Zope 4.\n\n- Add support for Python 3.11.\n\n\n4.1 (2022-09-20)\n----------------\n\n- Set the ``tree-s`` cookie for ``dtml-tree`` tags with ``SameSite=Lax``.\n  The tree tag never set this attribute. That causes modern browsers to show\n  warnings in the browser console and break tree displays in the future.\n  See https://hacks.mozilla.org/2020/08/changes-to-samesite-cookie-behavior/\n  for information about the ``SameSite`` cookie attribute and why its handling\n  in browsers is changing.\n\n- Add support for Python 3.10.\n\n- Drop support for Python 3.5.\n\n\n4.0 (2020-11-12)\n----------------\n\n- Make ``ustr.ustr`` Python 3 compatible\n  (`Zope#921 <https://github.com/zopefoundation/Zope/issues/921>`_)\n\n- Add support for Python 3.9\n\n- Restore ``sql_quote`` behavior of always returning native strings\n  (`#54 <https://github.com/zopefoundation/DocumentTemplate/issues/54>`_)\n\n- Fix broken tree tag\n  (`#52 <https://github.com/zopefoundation/DocumentTemplate/issues/52>`_)\n\n- Drop support for Python 2.\n\n- Eventually drop BBB code leading to a deprecation warning in version 3.2+.\n  (`#42 <https://github.com/zopefoundation/DocumentTemplate/issues/42>`_)\n\n- Update `isort` to version 5.\n\n\n3.2.2 (2020-02-04)\n------------------\n\n- de-fang ``sql_quote`` even more as quoting is too database-specific.\n  (`#48 <https://github.com/zopefoundation/DocumentTemplate/issues/48>`_)\n\n\n3.2.1 (2020-02-03)\n------------------\n\n- prevent a really strange ``AccessControl`` test failure when running\n  Zope's ``alltests`` script by importing deprecated names from\n  ``zope.sequencesort.ssort`` instead of ``sequence/SortEx.py`` in\n  ``sequence/__init__.py``\n\n\n3.2 (2020-02-03)\n----------------\n\n- no longer escape double quotes in ``sql_quote`` - that breaks PostgreSQL\n  (`#48 <https://github.com/zopefoundation/DocumentTemplate/issues/48>`_)\n\n- Added `DeprecationWarnings` for all deprecated files and names\n  (`#42 <https://github.com/zopefoundation/DocumentTemplate/issues/42>`_)\n\n- Import sorting done like Zope itself\n\n- Applied extended linting configuration similar to Zope's own\n\n\n3.1 (2020-01-31)\n----------------\n\n- Escape more characters in ``sql_quote``.  Taken over from PloneHotfix20200121.\n\n\n3.1b2 (2019-05-16)\n------------------\n\n- Fix broken handling of SyntaxError under Python 3\n\n\n3.1b1 (2019-05-13)\n------------------\n\n- Don't call HTTPExceptions that are looked up in TemplateDicts\n\n\n3.0 (2019-05-09)\n----------------\n\nChanges since 2.13.2:\n\nBreaking changes\n++++++++++++++++\n\n- Replace C code with a pure-Python implementation.\n\n- Remove ``VSEval`` module. Please use DT_Util.EVal now.\n\n- Remove ``DTtestExpr`` module. It contained nothing useful.\n\n- Remove support for string exceptions in ``<dtml-except>``.\n  (`#29 <https://github.com/zopefoundation/DocumentTemplate/pull/29>`_)\n\nFeatures\n++++++++\n\n- Add support for Python 3.5, 3.6, 3.7, 3.8.\n\n- Make the rendering encoding configurable to fix rendering on Zope 4.\n  (`#43 <https://github.com/zopefoundation/DocumentTemplate/issues/43>`_)\n\n- Add `__contains__` support to DocumentTemplate.TemplateDict.\n\nBug fixes\n+++++++++\n\n- Only decode input in ``html_quote`` when needed under Python 3\n  (`Products.PythonScripts#28 <https://github.com/zopefoundation/Products.PythonScripts/issues/28`>_)\n\n- Make sure all JSON-serialized data is text data and not bytes.\n  (`#45 <https://github.com/zopefoundation/DocumentTemplate/issues/45>`_)\n\n- Fix regression with exception handling in ``<dtml-except>`` with Python 2.\n  (`#25 <https://github.com/zopefoundation/DocumentTemplate/issues/25>`_)\n\n- Stabilized TreeTag rendering for objects without ``_p_oid`` values.\n  (`#26 <https://github.com/zopefoundation/DocumentTemplate/issues/26>`_)\n\n- Fix bugs with ``<dtml-in>``:\n\n    - Raise proper error if prefix is not simple.\n    - Fix complex multisort in Python 3.\n    - Fix iteration over list of tuples in Python 3.\n\n- Ensure html_quote is being applied to content.\n\n\n2.13.2 (2011-12-12)\n-------------------\n\n- Restrict the available functions in `DocumentTemplate.sequence` to public\n  API's of `zope.sequencesort`.\n\n\n2.13.1 (2010-07-15)\n-------------------\n\n- LP #143273: Enable the dtml-var modifiers url_quote, url_unquote,\n  url_quote_plus and url_unquote_plus to handle unicode strings.\n\n\n2.13.0 (2010-06-19)\n-------------------\n\n- Released as separate package.\n",
    "bugtrack_url": null,
    "license": "ZPL 2.1",
    "summary": "Document Templating Markup Language (DTML)",
    "version": "4.6",
    "project_urls": {
        "Documentation": "https://zope.readthedocs.io/en/latest/zopebook/index.html",
        "Homepage": "https://github.com/zopefoundation/DocumentTemplate",
        "Issue Tracker": "https://github.com/zopefoundation/DocumentTemplate/issues",
        "Sources": "https://github.com/zopefoundation/DocumentTemplate"
    },
    "split_keywords": [
        "dtml",
        "template",
        "zope",
        "html",
        "sql",
        "web",
        "markup"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "293471e07eeac40f191d5a152f2704d2150d252c8ae0f0fb5cd75451d89c1347",
                "md5": "35a45c9505919ac68748db646113cbb1",
                "sha256": "4e7b592857c9d6c880b5c664503cb270c3a6d44eabf48ecc468aeb0589fc4477"
            },
            "downloads": -1,
            "filename": "DocumentTemplate-4.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "35a45c9505919ac68748db646113cbb1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 87021,
            "upload_time": "2023-11-13T07:36:44",
            "upload_time_iso_8601": "2023-11-13T07:36:44.575104Z",
            "url": "https://files.pythonhosted.org/packages/29/34/71e07eeac40f191d5a152f2704d2150d252c8ae0f0fb5cd75451d89c1347/DocumentTemplate-4.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0b376ddc9ff06cc16a402e5aa8908b99f212dc429507e9e78a457d95448c5083",
                "md5": "a20ac3d5dda4dbcbfd90970b6eeb08ef",
                "sha256": "3b67e42036c7f725f9ab1d66010c7c1406dee4a55110bbaf0c1c643a1dacddb0"
            },
            "downloads": -1,
            "filename": "DocumentTemplate-4.6.tar.gz",
            "has_sig": false,
            "md5_digest": "a20ac3d5dda4dbcbfd90970b6eeb08ef",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 70141,
            "upload_time": "2023-11-13T07:36:46",
            "upload_time_iso_8601": "2023-11-13T07:36:46.886183Z",
            "url": "https://files.pythonhosted.org/packages/0b/37/6ddc9ff06cc16a402e5aa8908b99f212dc429507e9e78a457d95448c5083/DocumentTemplate-4.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-13 07:36:46",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "zopefoundation",
    "github_project": "DocumentTemplate",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "documenttemplate"
}
        
Elapsed time: 0.14166s