[Zope] <dtml-with> confusion

Dieter Maurer dieter@handshake.de
Wed, 9 Aug 2000 23:42:27 +0200 (CEST)


Chris Withers writes:
 > Can someone explain the difference between:
 > 
 > <dtml-with "PARENTS[-1]">
 >  <dtml-with squishdot>
Here, your namespace contains all attributes (owned or acquired)
of "squishdot" and of "PARENTS[-1]".
 >  ...do stuff here...
 >  </dtml-with>
 > </dtml-with>
 > 
 > and
 > 
 > <dtml-with "PARENTS[-1].squishdot">
Here, your namespace contains all attributes (owned or acquired)
of "squishdot" only.
 >  ...do stuff here...
 > </dtml-with>

Usually, "squishdot" will have "PARENTS[-1]" in its acquisition
context and therefore, the results will be the same.
In some weird cases, however, this might not be the case, e.g.
if "squishdot" would not be derived from "Acquisition.Implicit".


Dieter