[Zope] DTML Call Fails

Andrew Milton akm at theinternet.com.au
Tue Oct 24 12:56:13 EDT 2006


+-------[ Tino Wildenhain ]----------------------
| hpinson at indepthl.com 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
akm at theinternet.com.au


More information about the Zope mailing list