[Zope] Acquisition from a DTML method in a subdirectory

Jim Anderson ezjab at ieee.org
Mon Mar 8 09:29:11 EST 2004


Chris,

Thanks for the advice. I'm still new and learning Zope.
I'm planning to move onto ZPTs soon, but I wanted
to experiment and learn about DMTL first.

Jim


Chris Withers wrote:

> 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
>






More information about the Zope mailing list