[Zope] Why not ZPT

Edward Ing edwardbying@hotmail.com
Fri, 9 Aug 2002 00:32:23 -0400


I must wholly agree.
I have developed in JSP/servlets and in our companies special
web/application server  product for AS/400 servers. It is too easy to put
the logic and presentation is all over the place on JSP/servlets and on our
companies product. Our sales reps are real good and it helps if the user are
ignorant of good products like Zope, so the managed to sell a lot of test
web/application servers. But unfortunately I have to maintain the
application built with this product. I am kind of embarassed that I have
made that mess.

But the power of ZPT comes when you put ZPT's inside ZPT's. You have a main
ZPT which has a header ZPT and a footer ZPT and a body ZPT and a left side
bar ZPT.







----- Original Message -----
From: "Jim Kutter" <jim@ebizq.net>
To: "Andy McKay" <andy@agmweb.ca>; "Thomas Guettler"
<zopestoller@thomas-guettler.de>; <zope@zope.org>
Sent: Thursday, August 08, 2002 4:25 PM
Subject: Re: [Zope] Why not ZPT


ok. I have to pitch into this too.

I've worked on, and/or built mixed use setups. i.e. HTML rendered by the
script, or the script embedded in HTML (JSP and PHP)

And they're 100% unmaintainable especially if you aren't the originating
developer. It's almost impossible to visualize a complex html page from a
series of out += "HTML stuff" when the script doesn't run, and it's quite
easy to break something.

I've seen one jsp file return no less than 5 distinct html renderings, and
it becomes quite a bear to make a change. Add on top of that other jsp pages
that are copied off the original with minor modifications. Try changing the
HTML in both of those now. For that matter make 20 copies. Then the idea of
one html file being used by those scripts becomes a very good one. ZPT does
just that for us, and that's one of the reasons we chose Zope as a platform.

----- Original Message -----
From: "Andy McKay" <andy@agmweb.ca>
To: "Thomas Guettler" <zopestoller@thomas-guettler.de>; <zope@zope.org>
Sent: Thursday, August 08, 2002 3:51 PM
Subject: Re: [Zope] Why not ZPT


> > DTML is ugly
>
> Only if you use it as a programming language. Its quite simple and elegant
> for templating.
>
> > ZPT gives you only sometimes the line number where your typo was.
>
> So the issue is more the debugging than anything. I'm starting to like
ZPT,
> its quite nifty, but still mostly use DTML.
>
> >     <h1>%s</h1>
> >    </body>
> >   </html>
> > """ % (mytitle, myheading)
>
> Sure if your python programmers do the html. What happens when you start
to
> nest list of items in tables. Every mixing html / python or perl project
ive
> seen has ended up a total unmaintable inflexible mess after a few months
and
> few different developers.
> --
>   Andy McKay
>   agmweb consulting
>   http://www.agmweb.ca
>
>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>


_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )