[Zope] sequence-number math

D. Rick Anderson ruger at acsnv.com
Tue Oct 14 11:39:21 EDT 2003


Sure:

You need to escape it because python doesn't recognize the dash in a 
variable name.

_['sequence-number']

Double = is used for comparison only.

I would also create a new var instead of working on sequence-number 
directly.

Laters,

Rick


hpinson at indepthl.com wrote:

>In DTML, does anyone know how to perform math on a dtml-in sequence-
>number attribute.  For example
>
>sequence-number == sequence-number - 1
>
>Thanks!
>
>Harlow Pinson
>Indepth Learning
>Email: hpinson at indepthl.com 
>Web: http://www.indepthl.com
>Voice: 505-994-2135
>FAX: 208-475-7678
>
>
>_______________________________________________
>Zope maillist  -  Zope at 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 )
>
>  
>





More information about the Zope mailing list