On Thu, 03 Aug 2000, David Coe wrote:
> I *think* you've stumbled upon the way _.getitem behaves by default:
> (from the DTML reference)
>   getitem(name,flag)   Lookup a name in the namespace. If the value is
>                        callable and the flag is true, then the result
>                        of calling the value is returned, otherwise the
>                        value is returned. flag defaults to false.
> so "_.getitem(file, 1)" will probably do what you want.  But that's
> also basically the same as <dtml-var file> -- did that not work for
> you?
Erm.. no, it's not.

In my experience with getitem, i've found that:

<dtml-var file> 

would be equivalent to:

<dtml-var "_.getitem('file',1)">

not, as you said:

<dtml-var "_.getitem(file,1)">

Note the quotes around file.  Your method says "render the object named in 

The devil is in the details. (o8

Have a better one,

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

Reply via email to