===============
zope.ptresource
===============
.. image:: https://img.shields.io/pypi/v/zope.ptresource.svg
:target: https://pypi.python.org/pypi/zope.ptresource/
:alt: Latest release
.. image:: https://img.shields.io/pypi/pyversions/zope.ptresource.svg
:target: https://pypi.org/project/zope.ptresource/
:alt: Supported Python versions
.. image:: https://github.com/zopefoundation/zope.ptresource/actions/workflows/tests.yml/badge.svg
:target: https://github.com/zopefoundation/zope.ptresource/actions/workflows/tests.yml
.. image:: https://coveralls.io/repos/github/zopefoundation/zope.ptresource/badge.svg?branch=master
:target: https://coveralls.io/github/zopefoundation/zope.ptresource?branch=master
.. note::
This package is at present not reusable without depending on a large
chunk of the Zope Toolkit and its assumptions. It is maintained by the
`Zope Toolkit project <http://docs.zope.org/zopetoolkit/>`_.
This package provides a "page template" `resource class
<https://pypi.python.org/pypi/zope.browserresource>`_, a resource
whose content is processed with the `Zope Page Templates
<https://pypi.python.org/pypi/zope.pagetemplate>`_ engine before
being returned to client.
The resource factory class is registered for "pt", "zpt" and "html" file
extensions in the package's ``configure.zcml`` file.
=========
Changes
=========
5.1 (2025-02-14)
================
- Add support for Python 3.12, 3.13.
- Drop support for Python 3.7, 3.8.
5.0 (2023-03-27)
================
- Add support for Python 3.11.
- Drop support for Python 2.7, 3.5, 3.6.
- Drop support for deprecated ``python setup.py test``.
4.3.0 (2021-12-15)
==================
- Add support for Python 3.8, 3.9 and 3.10.
- Drop support for Python 3.4.
4.2.0 (2018-10-05)
==================
- Add support for Python 3.7.
4.1.0 (2017-08-31)
==================
- Add support for Python 3.5 and 3.6.
- Drop support for Python 2.6 and 3.3.
4.0.0 (2014-12-24)
==================
- Add support for PyPy and PyPy3.
- Add support for Python 3.4.
- Add support for testing on Travis.
4.0.0a1 (2013-02-25)
====================
- Add support for Python 3.3.
- Replace deprecated ``zope.interface.implements`` usage with equivalent
``zope.interface.implementer`` decorator.
- Drop support for Python 2.4 and 2.5.
3.9.0 (2009-08-27)
==================
Initial release. This package was split off zope.app.publisher as a part
of refactoring process. It's now a plugin for another package that was
refactored from zope.app.publisher - zope.browserresource. See its
documentation for more details.
Other changes:
* Don't render PageTemplateResource when called as the IResource interface
requires that __call__ method should return an absolute URL. When accessed
by browser, it still will be rendered, because "browserDefault" method now
returns a callable that will render the template to browser.
Raw data
{
"_id": null,
"home_page": "https://github.com/zopefoundation/zope.ptresource/",
"name": "zope.ptresource",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": null,
"author": "Zope Foundation and Contributors",
"author_email": "zope-dev@zope.dev",
"download_url": "https://files.pythonhosted.org/packages/7a/44/4f30933539c883b28edd07beaaaf540e946fdea3900b536ed85d310c4dfd/zope_ptresource-5.1.tar.gz",
"platform": null,
"description": "===============\nzope.ptresource\n===============\n\n.. image:: https://img.shields.io/pypi/v/zope.ptresource.svg\n :target: https://pypi.python.org/pypi/zope.ptresource/\n :alt: Latest release\n\n.. image:: https://img.shields.io/pypi/pyversions/zope.ptresource.svg\n :target: https://pypi.org/project/zope.ptresource/\n :alt: Supported Python versions\n\n.. image:: https://github.com/zopefoundation/zope.ptresource/actions/workflows/tests.yml/badge.svg\n :target: https://github.com/zopefoundation/zope.ptresource/actions/workflows/tests.yml\n\n.. image:: https://coveralls.io/repos/github/zopefoundation/zope.ptresource/badge.svg?branch=master\n :target: https://coveralls.io/github/zopefoundation/zope.ptresource?branch=master\n\n\n.. note::\n\n This package is at present not reusable without depending on a large\n chunk of the Zope Toolkit and its assumptions. It is maintained by the\n `Zope Toolkit project <http://docs.zope.org/zopetoolkit/>`_.\n\nThis package provides a \"page template\" `resource class\n<https://pypi.python.org/pypi/zope.browserresource>`_, a resource\nwhose content is processed with the `Zope Page Templates\n<https://pypi.python.org/pypi/zope.pagetemplate>`_ engine before\nbeing returned to client.\n\nThe resource factory class is registered for \"pt\", \"zpt\" and \"html\" file\nextensions in the package's ``configure.zcml`` file.\n\n\n=========\n Changes\n=========\n\n5.1 (2025-02-14)\n================\n\n- Add support for Python 3.12, 3.13.\n\n- Drop support for Python 3.7, 3.8.\n\n\n5.0 (2023-03-27)\n================\n\n- Add support for Python 3.11.\n\n- Drop support for Python 2.7, 3.5, 3.6.\n\n- Drop support for deprecated ``python setup.py test``.\n\n\n4.3.0 (2021-12-15)\n==================\n\n- Add support for Python 3.8, 3.9 and 3.10.\n\n- Drop support for Python 3.4.\n\n\n4.2.0 (2018-10-05)\n==================\n\n- Add support for Python 3.7.\n\n\n4.1.0 (2017-08-31)\n==================\n\n- Add support for Python 3.5 and 3.6.\n\n- Drop support for Python 2.6 and 3.3.\n\n\n\n4.0.0 (2014-12-24)\n==================\n\n- Add support for PyPy and PyPy3.\n\n- Add support for Python 3.4.\n\n- Add support for testing on Travis.\n\n\n\n4.0.0a1 (2013-02-25)\n====================\n\n- Add support for Python 3.3.\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\n\n3.9.0 (2009-08-27)\n==================\n\nInitial release. This package was split off zope.app.publisher as a part\nof refactoring process. It's now a plugin for another package that was\nrefactored from zope.app.publisher - zope.browserresource. See its\ndocumentation for more details.\n\nOther changes:\n\n * Don't render PageTemplateResource when called as the IResource interface\n requires that __call__ method should return an absolute URL. When accessed\n by browser, it still will be rendered, because \"browserDefault\" method now\n returns a callable that will render the template to browser.\n",
"bugtrack_url": null,
"license": "ZPL-2.1",
"summary": "Page template resource plugin for zope.browserresource",
"version": "5.1",
"project_urls": {
"Homepage": "https://github.com/zopefoundation/zope.ptresource/",
"Issue Tracker": "https://github.com/zopefoundation/zope.ptresource/issues",
"Sources": "https://github.com/zopefoundation/zope.ptresource"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c082d2468031090fbb8d0b88de3efbed224c2496ce2ebe38e881c609c21be9e3",
"md5": "997ed1f2b7116d1df6bd59856c53849c",
"sha256": "5e4c8778ab49c09e53ce69284746f7d405f2fb3fc768b7dd34d8e23df5dc02f0"
},
"downloads": -1,
"filename": "zope.ptresource-5.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "997ed1f2b7116d1df6bd59856c53849c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 7612,
"upload_time": "2025-02-14T08:39:35",
"upload_time_iso_8601": "2025-02-14T08:39:35.826052Z",
"url": "https://files.pythonhosted.org/packages/c0/82/d2468031090fbb8d0b88de3efbed224c2496ce2ebe38e881c609c21be9e3/zope.ptresource-5.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7a444f30933539c883b28edd07beaaaf540e946fdea3900b536ed85d310c4dfd",
"md5": "5f59f86e8ded1372ea7f4c5dc2c518a2",
"sha256": "e10ff8dfd345bb73d785dd3832a70e4c6118379f872909334098bf475bab605d"
},
"downloads": -1,
"filename": "zope_ptresource-5.1.tar.gz",
"has_sig": false,
"md5_digest": "5f59f86e8ded1372ea7f4c5dc2c518a2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 9527,
"upload_time": "2025-02-14T08:39:38",
"upload_time_iso_8601": "2025-02-14T08:39:38.111691Z",
"url": "https://files.pythonhosted.org/packages/7a/44/4f30933539c883b28edd07beaaaf540e946fdea3900b536ed85d310c4dfd/zope_ptresource-5.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-14 08:39:38",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "zopefoundation",
"github_project": "zope.ptresource",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "zope.ptresource"
}