[Zope] tree and dtml-with only not working for me
Thomas Weiner
weiner@tu-harburg.de
Fri, 03 Mar 2000 13:04:19 +0100
Andy Heath wrote:
[ preventing acquisition within a tree-tag ]
After going through the archives my third (and hopefully better tested)
trial with this :-)
In your Extensions directory create an external python method with this
code:
def prev_acqu(self, prop):
if self.__dict__.has_key(prop):
return getattr(self,prop)
else:
return ''
add it with the id prev_acqu (or anything else you like better) to a
folder in the acquisition path.
In your tree code do:
<dtml-var "prev_acqu('rubbish')">
If you choose a different id, of course you have to take it here, too.
Apologies again for jumping into this thread without exactly verifying
my code examples yesterday,
thomas