[Zope] How can folder address its contents?
Shalabh Chaturvedi
shalabh@pspl.co.in
Mon, 13 Dec 1999 10:22:22 +0530
----- Original Message -----
From: Stephen Pitts <smpitts@midsouth.rr.com>
To: Robert W. Erb <rerb@progress.com>
Cc: <zope@zope.org>
Sent: Monday, December 13, 1999 2:21 AM
Subject: Re: [Zope] How can folder address its contents?
..<snipped>..
> Beware of the sequence-item snafu; to use it in expressions, you must
> refer to it as _['sequence-item']! Anyone know why this is?
This is (probably) because as an expression 'sequence-item' is
interpreted as 'sequence' - 'item' (subtraction). You can
<dtml-let si=sequence-item> and than use si in expressions without any
problem. Or, you can use _['sequence-item'] like you mention, which
indexes the namespace directly.
(Wonder why its not sequence_item, which wouldn't have caused any such
problem?)
~Shalabh
-----------------------------------------------------------------------
Good programmers know what to write.
Great ones know what to rewrite.
--Eric Raymond
-----------------------------------------------------------------------