[Zope] My little aquisition misunderstanding...
Jaroslav Lukesh
lukesh at seznam.cz
Wed Nov 19 11:08:39 EST 2003
Dear all,
Imagine folder structure (at Zope 2.5.1):
Method1
Method2
object2
object1
+------object3
Method1 (simplified) return object2!!!
<dtml-with object1>
<dtml-with aq_explicit>
<dtml-try>
<dtml-var object2>
<dtml-except>
</dtml-try>
</dtml-with>
</dtml-with>
It does not matter, how much <dtml-with aq_explicit> tags you define, with
only one works like with paranoid-wide spread <dtml-with aq_explicit> tags.
I was play with "only" appendics in dtml-with tag, but no success until I
make Method2
Method2 (simplified) works as expected and render nothing:
<dtml-with object1>
<dtml-if "_.hasattr(aq_explicit, 'object2')">
<dtml-var object2>
</dtml-if>
</dtml-with>
Does aq_explicit fail if is used with <dtml-try> tags or I am weak?
Many thanks, J. Lukesh
More information about the Zope
mailing list