[Zope] ColdFusion - I want to remain a Zopista, please help
Thomas B. Passin
tpassin@mitretek.org
Thu, 26 Jul 2001 10:14:13 -0400
[Anthony Baxter]
> >>> "Thomas B. Passin" wrote
> > [Joel Burton]
> > > One small thing to note: the dtml-set add-on makes local variables
> > > extremely clean:
>
> For a different viewpoint -
> I've not installed dtml-set here - not because I don't trust it, or
> whatever, but because of a belief that if you're doing this sort of
> thing (or using REQUEST.set( ) a lot for control) then you're not
> doing things right. Use the right tool for the job - DTML isn't the
> right tool for control or logic. Use a PythonScript for that. Keep
> DTML for templating, but really, really don't try to do everything
> in DTML. Really. You'll go mad mad MAD mahahahaha. Erm. Sorry.
>
I know what you mean but...
In my view, dtml is mainly for formatting a page for display. That includes
iterations and receiving query data for formatting. If I need a variable
for temporary reference, I don't want to split off a script to do that,
which needs to be maintained and whose functioning can't be seen except by
opening another document. Not only would it be overkill and harder to read
and maintain, but I'm talking about page formatting for which a python
script isn't the best approach anyway.
If it's pre-formating processing, on the other hand, python script by all
means.
Cheers,
Tom P