[Zope] DTML Call Fails

Tino Wildenhain tino at wildenhain.de
Tue Oct 24 12:46:36 EDT 2006


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.

Any reason you cannot write in a python script something like:

REQUEST.SESSION.set('some_resonable_named_variable','AR-DA-07') ?

Could you explain in plain english what your final goal
of your construction is?

Regards
Tino Wildenhain


More information about the Zope mailing list