[Zope] dtml access to the instance data

Oleg Broytmann phd@sun.med.ru
Fri, 2 Apr 1999 14:46:39 +0400 (MSD)


Hi!

On 2 Apr 1999, Andrey V Khavryutchenko wrote:
> import DocumentTemplate
> 
> class Test:
>     title = 'Test page'
>     index_html = DocumentTemplate.HTMLFile('test.dtml')
> 
> t = Test()
> print t.index_html()

   After creating template, you should call it:

print t.index_html(...my-data-here...)

   If you need an example, I can send you ZIP-file with some examples.

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