Package aquarium :: Package filter :: Module FilterAPI
[show private | hide private]
[frames | no frames]

Module aquarium.filter.FilterAPI

Document the API for filter classes.

Since all output is buffered in Aquarium, it's really easy to run filters on that output before sending it to the client. (Aquarium filters should not be confused with Cheetah filters, as the two features are entirely different.) Often, a filter is just a bunch of regular expression substitutions wrapped in a class. Filters are subclasses of AquariumClass that have the following API:

The following methods are required:

__call__(self, str)
Return a filtered version of str.

Generated by Epydoc 2.1 on Mon Jan 1 16:34:19 2007 http://epydoc.sf.net