[Zope] PARENTS[0] not working in dtml-in

Stefan Mallepell Stefan Mallepell" <steve@syso.ch
Tue, 24 Apr 2001 17:29:56 +0200


Hi

I still have some problems with this PARENTS thing. Can anyone make me a
example of how I should use the "aq_parent.objectValues[]" in a dtml-in
syntax.

<dtml-in PARENTS reverse>
    ...
      <dtml-in
_.getitem('sequence-item').aq_parent.objectValues['kiscPage']>
          <BR><dtml-var id>
       </dtml-in>
   ...
  </dtml-in>

Thanks for your help
Stefan Mallepell


> Are you expecting PARENTS[0] to always return the parent folder of the
> context? If so use:

> aq_parent.objectValues[...]
>
> otherwise use:
>
> _.getitem('sequence-item').aq_parent.objectValues[...]