[Zope] dtml-in mapping, and sessions
Dieter Maurer
dieter@handshake.de
Tue, 9 Jul 2002 17:43:18 +0200
Alejandro Fernandez writes:
> On Mon, 8 Jul 2002 21:11:41 +0200
> Dieter Maurer <dieter@handshake.de> wrote:
>
> > Alejandro Fernandez writes:
> > > It goes
>
> > > <dtml-if "sequence-item > size">
>
> > Avoid names containing "-" in Python expressions!
>
> Hi,
>
> I'm using the names given in the dtml reference appendix of the zope book:
> under Summary, Batch, and Current Item Variables for the dtml-in loop:
>
> next-batches, total-variable, count-variable, sequence-item,
> sequence-index, etc
>
> Is the best way to avoid this <dtml-if "_.getitem('sequence-item' >
> size)">?
No, the best way is to use the "prefix" attribute of "dtml-in".
Please read the relevant part of the Zope Book....
Dieter