[Zope-dev] DT_Var modifier

Christian Theune ct@gocept.com
Wed, 29 May 2002 15:56:57 +0200


Hi.

I am currently hacking the DTMLTeX product, (maybe gonna make a relase of it ...) which
seems unmaintained, as the old owner isn't responding anymore.

What i needed for that, was a new modifier for dtml-var, called "tex_quote", that I implemented
by "monkeypatching" DT_Var.Var .

My question now: Would it be possible to modify the DT_Var.Var.__init__, so it can call
the parse_params in a way, that I only have to path the DT_Var.modifiers? I think that wouldn't be 
a big change, but i wouldn't need to monkeypatch the __init__ ...

I am willing to provide the changed code for that, if this gets accepted.

Greetings

Christian

-- 
Christian Theune - ct@gocept.com
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'])