[Zope] Acquisition 101 Question

Jonathan Hobbs toolkit at magma.ca
Tue Feb 22 14:55:40 EST 2005


From: "Remy Pinsonnault" <remypinsonnault at gmail.com>
> Let's say I have three dtml methods:
> 
> /Common/Top
> /Common/StyleSheet
> /Hello/index_html
> 
> >From the index_html file inside the Hello folder, I want to call the
> Top file so I do:
> 
> <dtml-var "Common.Top()">
> 
> It is working well if the Top file does not include another document.
> If Top has something like
> 
> <dtml-var StyleSheet>, it does not find the StyleSheet (except if i
> call it directly in the Common folder).

How about:

in index_html you could have:

<dtml-with Common>
  <dtml-var Top>
</dtml-with>

This gives you access to 'Common'.

HTH 

Jonathan





More information about the Zope mailing list