ANN: Tutorial for Zope Page Templates
There's a brand new tutorial at: http://dev.zope.org/Wikis/DevSite/Projects/ZPT/SimpleTutorial It introduces Zope Page Templates without assuming any familiarity with them, or with DTML or Python. I hope that given this, the language specifications, and the examples, people will no longer feel that ZPT is under-documented :-) Cheers, Evan @ digicool
Evan Simpson writes:
It introduces Zope Page Templates without assuming any familiarity with them, or with DTML or Python. I hope that given this, the language specifications, and the examples, people will no longer feel that ZPT is under-documented :-)
Everything is under-documented until the "for Dummies" book comes out! ;-) -Fred -- Fred L. Drake, Jr. <fdrake at acm.org> PythonLabs at Digital Creations
On Fri, Jun 22, 2001 at 03:58:52PM -0400, Evan Simpson wrote:
There's a brand new tutorial at:
http://dev.zope.org/Wikis/DevSite/Projects/ZPT/SimpleTutorial
It introduces Zope Page Templates without assuming any familiarity with them, or with DTML or Python. I hope that given this, the language specifications, and the examples, people will no longer feel that ZPT is under-documented :-)
It would be really useful to have an example of using a very simple ZSQL method. Say your underlying database people was name:text, user:int and you had ZSQL method sql_select (no parameters) select * from people order by age Also can you trigger sideffects from TAL? For example, can you trigger the usual CRUD statements? Jim Penny
Cheers,
Evan @ digicool
_______________________________________________ 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 )
Jim Penny wrote:
It would be really useful to have an example of using a very simple ZSQL method.
Say your underlying database people was name:text, user:int
and you had ZSQL method sql_select (no parameters) select * from people order by age
<table> <tr><th>Name</th><th>Age</th></tr> <tr tal:repeat="person here/sql_select"> <td tal:content="person/name">Fred</td> <td tal:content="person/age">21</td> </tr> </table>
Also can you trigger sideffects from TAL? For example, can you trigger the usual CRUD statements?
I'm not sure what you mean. You can call anything you like from an expression, and if it has side-effects, they'll trigger. Cheers, Evan @ digicool
participants (3)
-
Evan Simpson -
Fred L. Drake, Jr. -
Jim Penny