[Zope] tal+zclasses
Dieter Maurer
dieter at handshake.de
Thu Dec 11 13:16:08 EST 2003
Henny van der Linde wrote at 2003-12-10 22:50 +0100:
> ...
> <tr><td tal:define="batest here/batest"
>tal:content="batest/index_html"></td></tr>
>
>This only works in the way that it can find the index_html method (dtml) in
>the Zclass batest is an instance of. It won't render (it won't find) the
>other dtml-methods or any other object in the Zclass wich the index_html
>calls.
This indicates that the Page Template calls your DTML Method
in the wrong way. You can work around this by
... tal:content="python:batest.index_html(batest,request)" ...
This problem will go away, once you have converted your "index_html"
to ZPT.
Almost surely, you will need a "struture" prefix as well:
... tal:content="structure python:batest.index_html(batest,request)" ...
--
Dieter
More information about the Zope
mailing list