Mercurial > p > roundup > code
diff roundup/cgi/ZTUtils/Iterator.py @ 1233:69bf0d381fd7
Zope Collector fixes.
- merge Zope Collector #538 fix from ZPT CVS trunk (path expressions with a
non-path final alternate no longer try to call a value returned by that
alternate)
- merge Zope Collector #573 fix from ZPT CVS trunk
- added 1000-user/issue benchmark test
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 26 Sep 2002 21:54:18 +0000 |
| parents | b9988e118055 |
| children | fc52d57c6c3e |
line wrap: on
line diff
--- a/roundup/cgi/ZTUtils/Iterator.py Thu Sep 26 13:39:37 2002 +0000 +++ b/roundup/cgi/ZTUtils/Iterator.py Thu Sep 26 21:54:18 2002 +0000 @@ -18,8 +18,8 @@ iterator. The next() method fetches the next item, and returns true if it succeeds. -$Id: Iterator.py,v 1.1 2002-09-05 00:37:09 richard Exp $''' -__version__='$Revision: 1.1 $'[11:-2] +$Id: Iterator.py,v 1.2 2002-09-26 21:54:17 richard Exp $''' +__version__='$Revision: 1.2 $'[11:-2] import string @@ -137,7 +137,7 @@ def _supports(self, ob): try: ob[0] - except TypeError: return 0 + except (TypeError, AttributeError): return 0 except: pass return 1
