Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
e1c05a87
Commit
e1c05a87
authored
Nov 19, 2003
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
getObject() somtimes returns None.
parent
d4113acd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
trunk/src/scripts/zodbload.py
trunk/src/scripts/zodbload.py
+6
-2
No files found.
trunk/src/scripts/zodbload.py
View file @
e1c05a87
...
...
@@ -88,7 +88,7 @@ Usage: loadmail2 [options]
Specify the mailbox for getting input data.
$Id: zodbload.py,v 1.
3 2003/10/02 18:17:26
jeremy Exp $
$Id: zodbload.py,v 1.
4 2003/11/19 15:36:31
jeremy Exp $
"""
import
mailbox
...
...
@@ -424,7 +424,11 @@ def search(connection, terms, number):
results
=
cat
(
PrincipiaSearchSource
=
term
)
n
+=
len
(
results
)
for
result
in
results
:
did
=
result
.
getObject
().
getId
()
obj
=
result
.
getObject
()
# Apparently, there is a bug in Zope that leads obj to be None
# on occasion.
if
obj
is
not
None
:
obj
.
getId
()
return
n
...
...
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