Re: [Zope] dtml access to the instance data
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.
On 2 Apr 1999, Andrey V Khavryutchenko wrote:
OB> If you need an example, I can send you ZIP-file with some examples. Yes, it would be a great help.
Sent to address to do not hurt mail list with ZIP-attachments... Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN.
participants (2)
-
Andrey V Khavryutchenko -
Oleg Broytmann