[Zope] dtml question- testing folder existence in url

Thomas B. Passin tpassin@mitretek.org
Fri, 30 Aug 2002 13:48:56 -0400


[Chris Withers]

> Kelley, Sean wrote:
> > Don't I need it for lots of logic?
>
> Arg! No! Bad! Pain!
> http://www.zopezen.org/Members/zopista/Quotes/100104799225/view
>
> >  Or do I just use ZPT and python
> > exclusively?
>
> Logic in python script, presentation in ZPT...
>

Same for DTML, though.  Use Python for any serious logic, DTML is fine for
display, including looping through lists and arrays, and simple request
handling.

Either way, DTML or ZPT, use Python for any logic that is not closely
connected with the display of information.  Use DTML or ZPT to display the
results (that is, do not write HTML with Python - not that you cannot, but
the display langauages are designed for that so they are a better choice).

Cheers,

Tom P