I will soon try to create my first Python Product on the file system for Zope. Is it necessary or better to use DTML for the product's Web interfaces, or can I try to use Page Templates instead? All of the documentation tends to discuss DTML methods. Is using ZPT much different or more difficult? Thanks in advance, Jon Jon Whitener Detroit Michigan USA
also sprach Jon Whitener <wmmail@twmi.rr.com> [2003.01.29.2216 +0100]:
All of the documentation tends to discuss DTML methods. Is using ZPT much different or more difficult?
ZPT is supposed to be easier. But yes, it is different. It is newer. If you can do everything you need to do in ZPT, don't bother with DTML. -- martin; (greetings from the heart of the sun.) \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck NOTE: The pgp.net keyservers and their mirrors are broken! Get my key here: http://people.debian.org/~madduck/gpg/330c4a75.asc "aus der kriegsschule des lebens - was mich nicht umbringt, macht mich härter." - friedrich nietzsche
On Wed, Jan 29, 2003 at 04:16:30PM -0500, Jon Whitener wrote:
I will soon try to create my first Python Product on the file system for Zope. Is it necessary or better to use DTML for the product's Web interfaces, or can I try to use Page Templates instead?
You can use page templates. Example: from Products.PageTemplates.PageTemplateFile import PageTemplateFile manage_addMyProductForm = PageTemplateFile('MyProductAddForm',globals()) ... then on the filesystem just create "MyProductAddForm.zpt".
All of the documentation tends to discuss DTML methods. Is using ZPT much different
yes, if you mean the syntax of ZPT compared to the syntax of DTML.
or more difficult?
no. -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's ULTRA PYSCHOMETRIC LEOPARD! (random hero from isometric.spaceninja.com)
Jon Whitener wrote:
All of the documentation tends to discuss DTML methods. Is using ZPT much different or more difficult?
I have recently switched to pagetemplates, and they are not any more difficult than dtml. They do feel a little akward in the beginning as you don't programme it like dtml, php, asp etc. But instead manipulate xhtml. Buit it clicks rather well, doen't feel more clunky than dtml, and is more readable. Also you will appreciate that you can edit them in a html editor the first time you will need to rewrite the look of your app. regards Max M
Yes, if you want to seize the user interface infrastructure of Zope 2.x, that is all done in DTML. Chances are that you'll need them. Ausum ----- Original Message ----- From: "Jon Whitener" <wmmail@twmi.rr.com> To: <zope@zope.org> Sent: Wednesday, January 29, 2003 4:16 PM Subject: [Zope] Is DTML needed for Python Products?
I will soon try to create my first Python Product on the file system for Zope. Is it necessary or better to use DTML for the product's Web interfaces, or can I try to use Page Templates instead?
All of the documentation tends to discuss DTML methods. Is using ZPT much different or more difficult?
Thanks in advance, Jon
Jon Whitener Detroit Michigan USA
_______________________________________________ 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 )
participants (5)
-
Ausum Studio -
Jon Whitener -
martin f krafft -
maxm -
Paul Winkler