[Zope] normal result with acquisition?

Tom Deprez tom.deprez@uz.kuleuven.ac.be
Tue, 24 Oct 2000 18:41:30 +0200


Assume following :

Folder1
  sql
  show_abc
  method_showdata
  Folder2
    show_abc

method_showdata has among it the following code :

<dtml-with sql>
  <dtml-in selectallcentres>
    <table><tr><td>
       <dtml-var show_abc>
    </td></tr></table>
  </dtml-in>
</dtml-with>

1) When you call this function from Folder1 : show_abc of folder1 is used

2) When you call this function from Folder2 : show_abc of folder1 is used

--> what you wouldn't expect?

However:

3) Removing the <dtml-with sql> tag (and moving selectallcentres to folder1),
Calling method_showdata in Folder2 : show_abc of folder2 is used. 

--> what you would expect

Am I overlooking something of the acquisition here? Why does it uses in the
second case (2) not show_abc?

Thanks in advance,

Tom.