[Zope] The logic of the _ variable (Q1959)

picasso@videotron.ca picasso@videotron.ca
Thu, 16 Sep 1999 19:42:23 -0400


Thank you for your explanations.

However, I found a different results when using the following syntaxes:

>  You can get at properties or sub-objects of 'x' using
>  <dtml-with x> <dtml-var y> </dtml-with>
>  or <dtml-var "x.y"> or <dtml-var "_.getattr(x, 'y')">.

The first, with the tag with render the object (in my case a DTML Method),
the two others <dtml-var "x.y"> or <dtml-var "_.getattr(x, 'y')"> display a
string representation of the object. So as I understand it, we have to use
the tag 'with' if we want to call a subobject.

***************************
Oscar Picasso
picasso@videotron.ca
***************************