System based on annotation to make a configurable browser view by Makina Corpus.
Project description
Introduction
Harlequin provide infrastructure to make configurable browser view. This module doesn’t provide any feature to Plone.
How to use it
You want to develop a browser view that need configuration ? Make your browser view inherits from collective.harlequin.browser.Harlequin (or implements IHarlequinView)
Next you can define your configuration with a zope.schema interface which inherits from collective.harlequin.forms.Schema
Next you have to make your z3cform with the configuration schema and inherits from collective.harlequin.forms.Form.
The base harlequin view is not aware of your schema. you have to implements harlequin_schema method from IHarlequinView and that’s it, you have your ‘harlequin’ view !
Next make your view available in the display drop down menu, and try by selecting it ! You get The form displayed, fill it and validate it, the job is made for you.
How it works
It override the setViewTemplate script, and redirect to a custom form if the choosen view is an ‘harlequin’ view
The basic z3cform for configuration use a templateId field in hidden mode to store the templateId
By default configuration are stored with the property manager. It’s simple to make it work with annotation, but property has the advantage to be useable throw ZMI.
Credits
Authors
JeanMichel FRANCOIS aka toutpt <toutpt@gmail.com>
Contributors
Changelog
1.0b1 (2010-05-27)
Initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.