[Zope] dtml-in mapping, and sessions
Charlie Reiman
creiman@kefta.com
Tue, 9 Jul 2002 09:52:30 -0700
You can tighten it up with the shorthand expression:
<dtml-if expr="_['sequence-item'] > size">
If you wish, you could change your dtml-in to use a prefix, which will then
force the iterator to use an underscore instead of a dash, giving you:
<dtml-in blablah prefix=seq>
<dtml-if expr="seq_item > size">
</dtml-if>
</dtml-in>
> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
> Alejandro Fernandez
> Sent: Tuesday, July 09, 2002 2:04 AM
> To: Dieter Maurer
> Cc: zope@zope.org
> Subject: Re: [Zope] dtml-in mapping, and sessions
>
>
> 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)">?
>
> Thanks,
>
> Ale
>
> --
> Alejandro Fernandez
> Electronic Group Interactive
> --+34-65-232-8086--
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>