[Zope] Acquisition from a DTML method in a subdirectory

Chris Withers lists at simplistix.co.uk
Mon Mar 8 06:39:52 EST 2004


Jim Anderson wrote:

> Adtml_doc has the following code:
> 
>    <dtml-var expr="B.Bdtml_method()">

change to:


<dtml-with B>
<dtml-var Ddtml_method>
</dtml-with>

> Bdtml_method has code that calls Aext_method
> in A:
> 
>    Hi!
>    <dtml-var expr="Aext_method()">
>    Bye!

change to:

<dtml-var Aext_method>

> So it seems that calling a dtml method in a subdirectory
> does not acquire from the subdirectory or the current
> directory? Can anyone explain this?

DTML sux ;-)

> More importantly what is the proper way to call
> an external method from a dtml method being
> referenced in a subdirectory?

I believe it's caleld ZPT...

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk




More information about the Zope mailing list