[Zope-Checkins] CVS: Zope/lib/python/ZTUtils - Iterator.py:1.10
Andreas Jung
andreas at andreas-jung.com
Tue Oct 21 08:21:53 EDT 2003
Update of /cvs-repository/Zope/lib/python/ZTUtils
In directory cvs.zope.org:/tmp/cvs-serv16952/lib/python/ZTUtils
Modified Files:
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.10 ===
--- 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:21:52 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