[Zope] sequence- variables

D. Rick Anderson ruger@comnett.net
Tue, 11 Jun 2002 12:30:15 -0700


awesome!  That worked great. Thanks! I've got Learning Python and 
Programming Python, but I just haven't had time to read them. Thanks for 
the explanation.

Rick

Jim Penny wrote:

>On Tue, Jun 11, 2002 at 12:16:27PM -0700, D. Rick Anderson wrote:
>  
>
>>How can I use the sequence variables for something other than rendering? 
>>I can do a <dtml-var sequence-number> and it will render the current 
>>sequence number just fine, but if I do a <dtml-if "sequence-number == 
>>numberVariable"> it barfs. It also barfs if I try to assign it to 
>>    
>>
>inside quotes in DTML is python, so it is being read as
>sequence minus number == numberVariable.  You want to use the _
>elision,
>
><dtml-if "_['sequence-number']==numberVariable">
>
>Jim Penny
>
>  
>
>>another variable. What am I doing wrong?
>>
>>Thanks,
>>
>>Rick
>>
>>
>>
>>
>>_______________________________________________
>>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 )
>>
>>    
>>
>
>  
>