[Zope-dev] more __call__ ...

Toby Dickenson tdickenson@geminidataloggers.com
Tue, 26 Sep 2000 16:45:31 +0100


On Tue, 26 Sep 2000 16:11:50 +0100, Chris Withers <chrisw@nipltd.com>
wrote:

>So, if I give my product a class attribute of isDocTemp=1, what
>signature should I give my product's __call__ method so it picks up the
>DTML namespace?

Interestingly, Ive just put a HowTo that does this
<http://www.zope.org/Members/htrd/howto/FunctionTemplate>

This is a wrapper that that lets an old dtml file be replaced with a
python function, without having to update all the old dtml files that
call it.

In other words, Internalized External Methods ;-)

Why? Because Ive only just realized how error-prone non-trivial dtml
can be.    (and how ugly error-free dtml is)

hth,



Toby Dickenson
tdickenson@geminidataloggers.com