[Zope] sequence-item and ZSQL

Shalabh Chaturvedi shalabh@pspl.co.in
Fri, 3 Dec 1999 10:55:15 +0530


----- Original Message -----
From: Anders Gaarsdal Holst <anders@colorweb.dk>
To: <zope@zope.org>
Sent: Friday, December 03, 1999 2:24 AM
Subject: [Zope] sequence-item and ZSQL


| Hi!
|
|
| I have a <dtml-in> loop as follows:
|
| <dtml-in have>
| <dtml-call change_have_want_sql>
| </dtml-in>
|
| I now want to use the var sequence-item in the ZSQL method, that is
| called. This does not work however. Why is that?

Do you want something like this?:
 <dtml-in have>
   <dtml-in "change_have_want_sql()">
    <dtml-var sequence-item>
   </dtml-in>
 </dtml-in>

|
| I have also tried using another var for transferring to the ZSQL
method.
|
| <dtml-in have>
| <dtml-call "REQUEST.set('movieID', sequence-item)">
| <dtml-call change_have_want_sql>
| </dtml-in>
|
| But Zope apperently cannot figure the " - "  out in "sequence-item",
and
| therefore cannot set this new var "movieID". What is the syntax for
| writing this var?

In such cases, you can also do this:
<dtml-let si=sequence-item>
  (use si)
</dtml-let>

|
| Regards,
|                A n d e r s  G a a r s d a l  H o l s t
|
|
| _______________________________________________
| 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 )
|