+-------[ Tino Wildenhain ]---------------------- | [EMAIL PROTECTED] schrieb: | >A little bit of legacy DTML fun here... Zope 2.9.3 | > | >On save of a DTML Method, why would this dtml-call fail: | > | ><dtml-let standards="REQUEST.SESSION"> | > <dtml-call "standards.set('AR-DA-08', AR-DA-08)"> | ></dtml-let> | > | >With the error: | > | >"Expression (Python) Syntax error: invalid token" | > | >Whereas this works fine: | > | ><dtml-let standards="REQUEST.SESSION"> | > <dtml-call "standards.set('AR-DA-07', AR-DA-07)"> | ></dtml-let> | > | I doubt any of that really "works". So you happen | to have the variables named "AR" and "DA" defined | as numerical values somewhere? Otherwise the expression | makes no sense at all. The leading 0 in 08 and 07 indicates | you might have a completely other illusion on what's going on.
Apart from all of that; A leading 0 indicates an octal number. 08 is not a valid octal number, but, I'll just agree with Tino here, I don't think you know what you're trying to do. I don't think you want.. AR minus DA minus 8 as the value. -- Andrew Milton [EMAIL PROTECTED] _______________________________________________ Zope maillist - Zope@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 )