[Zope] Using DTML - I'm too stupid

Oleg Broytmann phd@sun.med.ru
Sat, 10 Apr 1999 18:34:32 +0400 (MSD)


On Fri, 9 Apr 1999, Oliver Thuns wrote:
> T = DocumentTemplate.HTMLFile('sample.dtml')
> print T(u=1, t={'1': 'abc', '2': 'DEF'})
> 
> <!--#var name="u"-->
> and
> <!--#var name="t"-->
> 
> works, but not
> 
> <!--#var name="t['1']"-->
> 
> What's wrong with this?

Python:
print T(None, {'t': 'abc', 'w': 'DEF'})

DTML:
<!--#var t-->
<!--#var w-->

Oleg.
---- 
    Oleg Broytmann  National Research Surgery Centre  http://sun.med.ru/~phd/
           Programmers don't die, they just GOSUB without RETURN.