[ZCM] [ZC] 1087/ 2 Resolve "Iterator problem"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Tue Oct 21 08:25:52 EDT 2003


Issue #1087 Update (Resolve) "Iterator problem"
 Status Resolved, Zope/bug+solution medium
To followup, visit:
  http://collector.zope.org/Zope/1087

==============================================================
= Resolve - Entry #2 by ajung on Oct 21, 2003 8:25 am

 Status: Pending => Resolved

Fix on 2.7 branch, HEAD.

-aj
________________________________________
= Request - Entry #1 by Anonymous User on Oct 21, 2003 5:58 am

This file in /lib/python/ZTUtils:


$Id: Iterator.py,v 1.9 2002/10/09 17:33:49 evan Exp $'''
__version__='$Revision: 1.9 $'[11:-2]

lacks support for 'length' attribute, so, ZPT syntax <span tal:content="repeat/item/length"> mentioned in Zope documentation becomes invalid and produces an error.
It can be solved with adding

     def length(self):
        return len(self.seq)

after 'last' attribute definition.

==============================================================




More information about the Zope-Collector-Monitor mailing list