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

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to