[Zope] PARENTS

Chris Withers chrisw@nipltd.com
Thu, 08 Jun 2000 22:39:08 +0100


Bill Anderson wrote:
> 
> Tom Scheidt wrote:
> >
> > Hi All,
> >
> > I can't get
> >
> > <dtml-with PARENTS[1]>
> 
> Have you tried <dtml-with "PARENTS[1]"> ?
> I dont recall why ATM, but my rule-of-thumb is that if you are calling
> ALLCAPS (ie. REQUEST,PARENTS...) wrap it in quotes.

The all-caps things isn't the problem, <dtml-var REQUEST> will work fine
:-)

The problem is the [1] which is a python way of saying give me the 1st
element in the list object called PARENTS.

It being python, it need to be wrapped in " ";-)

cheers,

Chris