If you using regular "" expresions Zope is reading it as object sequence minus object number. Try this. <dtml-in "_.range(0,5)"> <dtml-var "_['sequence-number']> </dtml-in> --- Kevin L <kevinsl@yahoo.com> wrote:
Hello,
I can run the following code which runs fine:
<dtml-in "_.range(0,5)"> <dtml-var sequence-number> </dtml-in>
However adding quotes around sequence-number always gives me an error "Error Type: NameError Error Value: sequence".
<dtml-in "_.range(0,5)"> <dtml-var "sequence-number"> </dtml-in>
I need to use sequence-number inside of a python expression. Can anyone explain how to do this?
thanks
-Kevin
__________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
_______________________________________________ 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 )
__________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/