Skip to main content

Zope-compatible page template engine based on Chameleon.

Project description

Overview

Latest release Supported Python versions https://travis-ci.org/zopefoundation/z3c.ptcompat.svg?branch=master https://coveralls.io/repos/github/zopefoundation/z3c.ptcompat/badge.svg?branch=master

This package provides a page template engine implementation based on Chameleon. It plugs into the zope.pagetemplate package and has an explicit dependency on this package.

You can use the package to replace Zope’s reference template engine with Chameleon in an application based on the Zope Toolkit.

Configuration

The package is configured via ZCML.

Changelog

2.1.0 (2017-10-17)

  • Fix rendering with Chameleon 3.0 and above. See issue 2.

  • Add support for Python 3.6.

  • Drop support for Python 3.3.

2.0 (2016-09-02)

  • Added support for Python 3.4, 3.5, PyPy and PyPy3.

  • Dropped support for Python 2.6.

2.0.0a1 (2013-02-25)

  • Added support for Python 3.3.

  • Ensured that chameleon.tal.ReapeatDict can be adapted. (Needs to be fixed in Chameleon.)

  • Replaced deprecated zope.interface.implements usage with equivalent zope.interface.implementer decorator.

  • Dropped support for Python 2.4 and 2.5.

1.0.1 (2012-02-15)

  • Move zope.testing to test dependencies, add undeclared dependencies.

1.0 (2011-10-10)

  • Update implementation to use component-based template engine configuration, plugging directly into the Zope Toolkit framework.

    The package no longer provides template classes, or ZCML directives; you should import directly from the ZTK codebase.

    Also, note that the PREFER_Z3C_PT environment option has been rendered obsolete; instead, this is now managed via component configuration.

  • Upgrade to Chameleon 2.x.

0.5.7 (2010-11-25)

  • Added not yet declared test dependency on zope.testing.

  • Fixed test tear down so tests can be run multiple times.

0.5.6 (2010-04-19)

  • Remove broken templates from registry during engine migration. In some testing situation, stale templates would be tracked in the regsitry.

  • Existing template instances are now migrated to the right engine when using the enable and disable methods. [malthe]

0.5.5 (2009-07-24)

  • Make tests pass in a binary release by not relying on the pacakge structure.

0.5.4 (2009-07-23)

  • Added a test requirement explicitely.

0.5.3 (2009-05-28)

  • Added support for browser:addform, browser:editform, browser:form, and browser:schemadisplay directives.

0.5.2 (2009-03-09)

  • Fixing brown-bag release 0.5.1.

0.5.1 (2009-03-09)

  • Added missing lxml test dependency.

  • Fixed tests to work with current version of z3c.pt.

  • Fixed autor e-mail address.

  • Added doctests and change log to long description to show up at pypi homepage.

  • Reformatted release dates in change log to use iso dates.

0.5 (2009-02-16)

  • Added module which patches zope.app.pagetemplate such that template classes depend on z3c.pt for rendering (import optional). [malthe]

0.4 (2009-02-10)

  • Rename project to z3c.ptcompat to deal with setuptools issues (as discussed on zope-dev http://mail.zope.org/pipermail/zope-dev/2008-December/033820.html)

  • Added optional option doctest for output checker to allow usage with alternative implementations, e.g. the Zope doctest module. [malthe]

  • Added tests for meta-directives and fixed some minor errors. [malthe]

  • Added update-tool to walk a source tree and automatically rewrite template import statements in each file. [malthe]

  • Added meta-directives for browser pages and viewlets. These build upon the original implementations, but make sure that the Chameleon template engine is used. [malthe]

  • Added PageTemplateFile. [malthe]

0.3 (2008-10-02)

  • Various changes.

0.2 (2008-09-13)

  • Various changes.

0.1 (2008-09-09)

  • Initial release.

Download files

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

Source Distribution

z3c.ptcompat-2.1.0.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

z3c.ptcompat-2.1.0-py2.py3-none-any.whl (9.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file z3c.ptcompat-2.1.0.tar.gz.

File metadata

  • Download URL: z3c.ptcompat-2.1.0.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for z3c.ptcompat-2.1.0.tar.gz
Algorithm Hash digest
SHA256 6854cefa2b1c5cb5f1ee6965331f9d584610efa5024cdf70d84cf4096e879bb8
MD5 fe19579c0d9d64a2a2ac5d4dea9978d2
BLAKE2b-256 1836ef67ea0143b02530a65964817b62026d3ae03f4efd7430947b5ff343c909

See more details on using hashes here.

File details

Details for the file z3c.ptcompat-2.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for z3c.ptcompat-2.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fecec09cdc3414ce08d25415086559b699a79c264dcf88af3a05f4fb65ffb181
MD5 512576c01da76d930e9ed0aa9ddabf7f
BLAKE2b-256 b84a26b800c5e16ab788052c4b0591bdb8491dc4ae91419453fd6331a164d448

See more details on using hashes here.

Supported by

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