Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
431601ab
Commit
431601ab
authored
Sep 26, 2002
by
Evan Simpson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Collector #573
parent
16c1c9f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
doc/CHANGES.txt
doc/CHANGES.txt
+2
-0
lib/python/ZTUtils/Iterator.py
lib/python/ZTUtils/Iterator.py
+3
-3
No files found.
doc/CHANGES.txt
View file @
431601ab
...
...
@@ -6,6 +6,8 @@ Zope Changes
Bugs Fixed
- Collector #573: ZTUtils Iterator didn't catch AttributeError.
- Deprecated hasRole alias in User.py failed to return result.
- Collector #580: TALES evaluateBoolean() was squishing 'default'.
...
...
lib/python/ZTUtils/Iterator.py
View file @
431601ab
...
...
@@ -18,8 +18,8 @@ The Iterator() function accepts either a sequence or a Python
iterator. The next() method fetches the next item, and returns
true if it succeeds.
$Id: Iterator.py,v 1.
7 2002/08/14 22:10:12 mj
Exp $'''
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
$Id: Iterator.py,v 1.
8 2002/09/26 17:29:45 evan
Exp $'''
__version__
=
'$Revision: 1.
8
$'
[
11
:
-
2
]
class
Iterator
:
'''Simple Iterator class'''
...
...
@@ -135,7 +135,7 @@ class SeqInner(InnerBase):
def
_supports
(
self
,
ob
):
try
:
ob
[
0
]
except
TypeError
:
return
0
except
(
TypeError
,
AttributeError
)
:
return
0
except
:
pass
return
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment