[Zope] Namespace + syntax question

Jim Sanford jsanford@atinucleus.com
Tue, 15 Feb 2000 09:46:22 -0600


I think it should be _['sequence-index'] and not _.['sequence-index']

ie. leave out the period

JIm
----- Original Message -----
From: RC Compaan <roche@up-front.co.za>
To: Zope <zope@zope.org>
Sent: Tuesday, February 15, 2000 12:23 AM
Subject: [Zope] Namespace + syntax question


I want to create a list of image thumbnails in a table.  On every tenth item
i want to start a new row.  I thought the "fmod" function is appropriate.  I
get a syntax error however.

My DTML:

<dtml-in "PARENTS[0].objectItems('Image')">
  <dtml-if sequence-start>
     <table><tr>
  </dtml-if>
  <dtml-if "_.fmod(_.['sequence-index'],10)=0">
     </tr>
     <tr><td><dtml-var sequence-item></td>
  <dtml-else>
     <td><dtml-var sequence-item></td>
  </dtml-if>
  <dtml-if sequence-end>
     </tr></table>
  </dtml-if>
</dtml-in>

Any help or other suggestions would be appreciated.

roché


_______________________________________________
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 )