z3c.pagelet

Software Screenshot:
z3c.pagelet
Software Details:
Version: 1.3.1
Upload Date: 20 Feb 15
Distribution Type: Freeware
Downloads: 1

Rating: nan/5 (Total Votes: 0)

Pagelets are Zope 3 UI components. In particular they allow the developer to specify content templates without worrying about the UI O-wrap.

z3c.pagelet provides a very flexible base implementation that can be used to write view components which can be higly customized later in custom projects. This is needed if you have to write reusable components like those needed in a framework. Pagelets are BrowserPages made differently and can be used to replace them.

What does this mean?

We separate the python view code from the template implementation. And we also separate the template in at least two different templates - the content template and the layout template.

This package uses z3c.template and offers an implementaton for this template pattern. Additionaly this package offers a pagelet directive wich can be used to register pagelets.

Pagelets are views which can be called and support the update and render pattern.

What is new in this release:

  • Fix IPageletDirective after a change in zope.component.zcml.IBasicViewInformation

What is new in version 1.3.0:

  • Moved z3c.pt include to extras_require chameleon. This makes the package independent from chameleon and friends and allows to include this dependencies in your own project.
  • Upgrade to chameleon 2.0 template engine and use the newest z3c.pt and z3c.ptcompat packages adjusted to work with chameleon 2.0.
  • See the notes from the z3c.ptcompat package:
  • Update z3c.ptcompat implementation to use component-based template engine configuration, plugging directly into the Zope Toolkit framework.
  • The z3c.ptcompat package no longer provides template classes, or ZCML directives; you should import directly from the ZTK codebase.
  • Note that the PREFER_Z3C_PT environment option has been rendered obsolete; instead, this is now managed via component configuration.
  • Also note that the chameleon CHAMELEON_CACHE environment value changed from True/False to a path. Skip this property if you don't like to use a cache. None or False defined in buildout environment section doesn't work. At least with chameleon

What is new in version 1.2.2:

  • Change request interface in pagelet adapter signature e.g. (context, request, pagelet). Switch from IBrowserRequest to IHTTPRequest. This allows to use the pagelet pattern for jsonrpc request which doesn't provide IBrowserRequest. Also reflect the changes in configure.zcml

Requirements:

  • Python

Other Software of Developer Roger Ineichen and the Zope Community

z3c.macro
z3c.macro

11 May 15

z3c.tabular
z3c.tabular

20 Feb 15

Comments to z3c.pagelet

Comments not found
Add Comment
Turn on images!