[Zope] Previous Message

2000-08-07 Thread Tom Deprez

Hi all,

Please, forget my previous message!

Next question : Is there an easier way for writing the following?

dtml-let position=sequence-item
  dtml-var expr="position+1"/dtml-var count-CENTRE_NO
dtml-let

This gives the sequence order of every record on the total amount of
retrieved records. So far, this was the only way I could get it to work. Is
there a better way (simpler) ?

Thanks, Tom.

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Previous Message

2000-08-07 Thread Chris Withers

Tom Deprez wrote:
 dtml-let position=sequence-item
   dtml-var expr="position+1"/dtml-var count-CENTRE_NO
 dtml-let

how about:

dtml-var "_.getitem('sequence-index',0)+1"/dtml-var count-CENTRE_NO

cheers,

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
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 )