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)">

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)">

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?

Tino Wildenhain
Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to