Palladion Software
user icon Guest

Pipelines Package README

Created by tseaver. Last modified 2005-06-27 14:32:16.

Pipelines Framework

A Zope 3 package which allows a site developer to specify a series of "filter" operations as a "pipeline". Each filter is a function or callable which takes an "context" object and a "state" object; the state object allows the filters to assign attributes to it, which may not be possible with the context object (e.g., it might be a new-style class with slots).

Installing the Package

For use outside Zope, the standard distutils dance applies:

    $ /path/to/python setup.py install

For use within Zope, you should install the package either to your site-packages directory (as above) or to the lib/python directory of your instance, e.g.:

    $ /path/to/python setup.py install \
        --install-lib=/path/to/instance/lib/python

You then need to create ZCML which creates your pipelines, and registers them as utilities and / or event subscribers. (see the file, example/configure.zcml for more details).