[Zope] dtml access to the instance data

Andrey V Khavryutchenko akhavr@compchem.kiev.ua
02 Apr 1999 14:13:34 +0300


Hi, Oleg! 

>>>>> "OB" == Oleg Broytmann writes:

 OB> 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()

 OB>    After creating template, you should call it:

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

Ok, I've changed my test and it worked (btw, there was another typo,
sorry). 

Is necessary data substituted automaticaly by ZPublisher?  I mean, will the 
test return desired age if called through web?

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

Yes, it would be a great help.

Thanks!

-- 
SY, Andrey V Khavryutchenko	http://www.kbi.kiev.ua/~akhavr

Shick's Law:
	There is no problem a good miracle can't solve.