[Zope-dev] TALES iterator odd/even reversal
Marius Gedminas
marius at gedmin.as
Thu Jul 3 19:05:30 EDT 2008
Recently I migrated a large-ish app built on Zope 3.2 to Zope 3.4.
("About time" I hear someone mumbling in the audience.) One strange
difference was that TALES iterators swapped the meaning of odd and even,
i.e.
<p tal:repeat="item python: [1, 2, 3, 4]">
<span tal:condition="repeat/var/odd">odd<span>
<span tal:condition="repeat/var/even">even<span>
</p>
produces different results on Zope 3.4 than it did on 3.2.
Does anyone know why this is? Is this a bug? Should it be fixed?
Marius Gedminas
--
Perl is hard for most people to write. They write PERL or Pearl.
-- Abigail
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20080704/b0753dd1/attachment.bin
More information about the Zope-Dev
mailing list