* Adrian Hungate <[EMAIL PROTECTED]> [020529 18:20]:
> If I understand what you are asking, this is something I need as well. I am
> trying to create an entity_encode and entity_decode modifier (Like the html
> encode and html decode modifiers) that will encode (decode) all characters
> in the string that are special or illegal in XML.
> If there is an easy (Or even not so easy) way of adding this without a nasty
> patch (i.e. replacing an entire method in DT_Var) I would love to hear about
> it. If there isn't I would like to propose that this be changed (i.e.
> added).

Ok. There already is something like a small registry (it's only a list) where
you need to add your filter function, but the __init__ patch is bad.

If someone would tell me to go on, I would start a small refactoring of this
to allow that become more easy to introduce new filters ...



Christian Theune - [EMAIL PROTECTED]
gocept gmbh & co.kg - schalaunische strasse 6 - 06366 koethen/anhalt
tel.+49 3496 3099112 - fax.+49 3496 3099118 mob. - 0178 48 33 981

reduce(lambda x,y:x+y,[chr(ord(x)^42) for x in 'zS^BED\nX_FOY\x0b'])

Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to