[Zope] img tag dtml question

Dieter Maurer dieter@handshake.de
Thu, 14 Sep 2000 22:14:06 +0200 (CEST)


Jason Cunliffe writes:
 > Can anyone see why under 2.2.0 this is wrong ?
 >   <dtml-var "7Dlogoicon_gif.tag(border = 0)">
 > ... I am getting
 > >>> invalid syntax, for tag <dtml-var "7Dlogoicon_gif.tag(border=0)">, on
 > line 3 of standard_html_footer
The Python interpreter interprets expressions inside "...".
Python requires names to start with a letter.
You name "7Dlogoicon_gif" starts with a digit. That is the problem.

You can use "_.getitem('7Dlogoicon_gif').tag(border = 0)">, instead


Dieter