[Zope] Acquisition from a DTML method in a subdirectory

Paul Winkler pw_lists at slinkp.com
Wed Mar 10 16:02:41 EST 2004


On Wed, Mar 10, 2004 at 02:13:19PM +0000, Chris Withers wrote:
> Jim Anderson wrote:
> 
> >Maybe just a bit of a masochist - LOL. I've started reading
> >more about ZPT, and it looks like it will help. I haven't
> >gotten to far yet, but I haven't dumped DTML from my vocabulary
> >yet because I have a concern about tieing ZPT with python modules.
> 
> What do you mean?
> 
> >I haven't seen how to do that yet. Give me a bit more time on
> >reading then maybe I'll be ok with ZPT.  The Zope Book
> >encourages using ZPT, but also says that there are times to use
> >DTML.
> 
> There are never times to use DTML ;-)

Sure there are.  ZPT is XML-centric and not everything wants
to be XML (or a python script). 
Examples are dynamic stylesheets a la Plone, and Z SQL methods.

Other than those 2 examples, I use ZPT for all templates.

 
> >I need to be able to program a lot of logic and tie it in with the
> >presentation. I'm getting to the point with DTML where I think
> >I can do that with most of my work in python, and a sprinkling
> >of DTML. I'm not quite there yet, however :(
> 
> Yeah, do most of the work in Script (Python)'s, and then present that work 
> using ZPT. ZPT is good in that it gives you good hints as to when stuff 
> should be in a python script...

+1

-- 

Paul Winkler
http://www.slinkp.com
Look! Up in the sky! It's AGENT OF ATLANTIS!
(random hero from isometric.spaceninja.com)



More information about the Zope mailing list