On Tue, 8 May 2001, Jeff wrote:
> I have created a product with a zclass that contains a zclass; classA contains 
>classB. 
[...]
> Now for the part I don't understand.....
> I have a page where I would like dynamically display a classB object. I used the 
>following:
> 
> <dtml-var expr="_.getitem(index_object, 1)">
> 
> Where 'index_object' is the id of a classB object within the name space (same 
>folder).
> I thought that this would call the 'default rendering' for the named object, but 
>instead returns the object.

'1' means "call the object if it is callable".  ZClasses are not callable.
Therefore you get the object back.

See the Renderable Product if you want to fix this <grin>.

--RDM


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

Reply via email to