five.ptFive bridges and patches to use Chameleon with Zope 2 | |
Download |
five.pt Ranking & Summary
Advertisement
- License:
- ZPL
- Publisher Name:
- Hanno Schlichting, Malthe Borch and the Zope community
- Publisher web site:
- http://zope.org
five.pt Tags
five.pt Description
Five bridges and patches to use Chameleon with Zope 2 five.pt is a Python module that brings the Chameleon template engine to the Zope 2 platform. It's a drop-in replacement, providing bridges to the most common API.Support for browser pages, viewlets and viewlet managers is included.Usage:To enable Chameleon, simply include the ZCML configuration:< include package="five.pt" / >Tempates may be instantiated directly. Here's an example of a browser view which uses a view page template:from Products.Five import BrowserViewfrom five.pt.pagetemplate import ViewPageTemplateFileclass SimpleView(BrowserView): index = ViewPageTemplateFile('simple.pt')Other template classes are available, see the pagetemplate module.For general information about Chameleon, see http://chameleon.repoze.org/. Requirements: · Python What's New in This Release: · Have the base template class implement IPageTemplate from zope.pagetemplate. This interface is relied on for a number of adapter registrations and the missing interface declaration affects packages such as plone.caching. · Set default reload mode to the Zope 2 application server configuration's debug_mode value.
five.pt Related Software