Package lemon :: Package external :: Package Cheetah :: Module Filters :: Class Filter
[show private | hide private]
[frames | no frames]

Class Filter

Known Subclasses:
MaxLen, Pager, ReplaceNone, Strip, StripSqueeze, WebSafe

A baseclass for the Cheetah Filters.

Method Summary
  __init__(self, templateObj)
Setup a ref to the templateObj.
  filter(self, val, **kw)
Replace None with an empty string.
  generateAutoArgs(self)
This hook allows the filters to generate an arg-list that will be appended to the arg-list of a $placeholder tag when it is being translated into Python code during the template compilation process.

Method Details

__init__(self, templateObj=<lemon.external.Cheetah.Filters.DummyTemplate instance at...)
(Constructor)

Setup a ref to the templateObj.  Subclasses should call this method.

filter(self, val, **kw)

Replace None with an empty string.  Reimplement this method if you
want more advanced filterting.

generateAutoArgs(self)

This hook allows the filters to generate an arg-list that will be
appended to the arg-list of a $placeholder tag when it is being
translated into Python code during the template compilation process. See
the 'Pager' filter class for an example.

Generated by Epydoc 2.0 on Mon Nov 10 15:08:00 2003 http://epydoc.sf.net