[Zope-Checkins] CVS: Zope/lib/python/ZTUtils - Iterator.py:1.9.42.1
Andreas Jung
andreas at andreas-jung.com
Tue Oct 21 08:25:51 EDT 2003
Update of /cvs-repository/Zope/lib/python/ZTUtils
In directory cvs.zope.org:/tmp/cvs-serv17620/lib/python/ZTUtils
Modified Files:
Tag: Zope-2_7-branch
Iterator.py
Log Message:
- Collector #1087: ZPT: "repeat/item/length" did not work as documented
in the Zope Book.
=== Zope/lib/python/ZTUtils/Iterator.py 1.9 => 1.9.42.1 ===
--- Zope/lib/python/ZTUtils/Iterator.py:1.9 Wed Oct 9 13:33:49 2002
+++ Zope/lib/python/ZTUtils/Iterator.py Tue Oct 21 08:25:50 2003
@@ -96,6 +96,9 @@
if self.end: return 1
return not self.same_part(name, self.item, self._next)
+ def length(self):
+ return len(self.seq)
+
def same_part(self, name, ob1, ob2):
if name is None:
return ob1 == ob2
More information about the Zope-Checkins
mailing list