dtml to tal - advice
Hi Anyone any ideas, I have this in dtml (it uses other bits to query an sql d/b to return weblinks, does anyone know how to render it in ZPT. I cannot for the life of me figure it out. I may then be able to guess how to do the rest. Hope it's clear. ---find_a_link_search---- <dtml-if "REQUEST.has_key('search_string')"> <dtml-call "REQUEST.set('s',search_string)"> </dtml-if> <dtml-in expr="is_proxy.callRemoteMethod('weblinks_py',s)"> <dtml-if sequence-start> <table border="0" width="100%" align="center"> <tr> <td align="center"> Find a Weblink search results - <dtml-var sequence-length> matching titles found </td> </tr> <tr><td> </td></tr> </table> </dtml-if sequence-start> <dtml-var sequence-item> <dtml-else> <table border="0" width="100%"align="center"> <tr> <td align="center" bgcolor="#CCCCCC"> Find a Weblink search results </td> </tr> <tr><td> </td></tr> <tr><td align="center">Sorry, no matching Weblinks were found.</td></tr> <tr><td align="center">Try Again?</td></tr> </table> </dtml-in> Thanks very much dean -- Dean Hale Information Services Web Development Manager 0191 515 2424
A great learning tool I found was to just use the Z Search Method and choose to generate the page as ZPT instead of DTML. We are still 100% DTML in our shop so am no expert....but when I found this it did clarify a few things. HTH Allen ----- Original Message ----- From: "dean hale" <dean.hale@sunderland.ac.uk> To: <zope@zope.org> Sent: Wednesday, July 23, 2003 11:18 AM Subject: [Zope] dtml to tal - advice
Hi
Anyone any ideas,
I have this in dtml (it uses other bits to query an sql d/b to return weblinks, does anyone know how to render it in ZPT. I cannot for the life of me figure it out.
I may then be able to guess how to do the rest.
Hope it's clear.
---find_a_link_search----
<dtml-if "REQUEST.has_key('search_string')"> <dtml-call "REQUEST.set('s',search_string)"> </dtml-if>
<dtml-in expr="is_proxy.callRemoteMethod('weblinks_py',s)">
<dtml-if sequence-start> <table border="0" width="100%" align="center"> <tr> <td align="center"> Find a Weblink search results - <dtml-var sequence-length> matching titles found </td> </tr> <tr><td> </td></tr> </table> </dtml-if sequence-start>
<dtml-var sequence-item>
<dtml-else> <table border="0" width="100%"align="center"> <tr> <td align="center" bgcolor="#CCCCCC"> Find a Weblink search results </td> </tr>
<tr><td> </td></tr> <tr><td align="center">Sorry, no matching Weblinks were found.</td></tr> <tr><td align="center">Try Again?</td></tr> </table> </dtml-in>
Thanks very much dean
--
Dean Hale Information Services
Web Development Manager 0191 515 2424
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
On Wed, Jul 23, 2003 at 04:18:34PM +0100, dean hale wrote:
Hi
Anyone any ideas,
I have this in dtml (it uses other bits to query an sql d/b to return weblinks, does anyone know how to render it in ZPT. I cannot for the life of me figure it out.
I may then be able to guess how to do the rest.
Hope it's clear.
the whole thing??? what specifically can't you figure out? This may help with some parts: http://www.zope.org/Members/peterbe/DTML2ZPT Note the use of ZTUtils.Batch for batching. -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's PASTY INDEFATIGABLE FIGHTER! (random hero from isometric.spaceninja.com)
dean hale wrote at 2003-7-23 16:18 +0100:
I have this in dtml (it uses other bits to query an sql d/b to return weblinks, does anyone know how to render it in ZPT. I cannot for the life of me figure it out.
There is a HowTo easing migration from DTML to ZPT. Did you read it? If not, do it and come again when there are remaining questions. Dieter
participants (4)
-
Allen Schmidt -
dean hale -
Dieter Maurer -
Paul Winkler