[Zope] getitem problem

Chris Withers chrisw@nipltd.com
Mon, 20 Nov 2000 11:43:23 +0000


Matt wrote:
> <dtml-var "_.getitem('staticProperties.container_metatype',1)">
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                       Here's your problem. 

The string supplied to getitem() can't contain dots since it should be
the id of a single object....

Given that you're passing a 1 as getitem's second attribute, the
following is probably better code:

<dtml-var container_metatype>

or:

<dtml-with staticProperties>
 <dtml-var container_metatype>
</dtml-with>

cheers,

Chris