[Zope] help with running a dtml method
Dieter Maurer
dieter at handshake.de
Fri Mar 27 14:46:49 EDT 2009
Dvir Bar-lev wrote at 2009-3-26 10:12 +0200:
>I have a site with the following folder structure in zope:
>Dvir
> WebSite
> contentPages
>
>I have and index_html in the WebSite folder, in it I call a dtml method
>that's in the contentPages folder named overview_html,
>
>in the same folder (content Pages) I have another dtml_method named
>time_combo.
>
>In the overview_html I try to call the time combo method - I tried:
>
><dtml-var time_combo>
>
>But it keeps saying it has an error :
>
>Error Type: NameError
>Error Value: name 'time_combo' is not defined
Unlike a "DTMLDocument", a "DTMLMethod" does not change the context
from name lookup. Depending on how you call the method
you may even loose all context.
To learn more about DMTL calling, read
http://www.handshake.de/~dieter/pyprojects/zope/book/chap3.html#c37ac15c14b5
--
Dieter
More information about the Zope
mailing list