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
3d8cdb3e
Commit
3d8cdb3e
authored
Sep 23, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added logic to handle missing data.
parent
ecb9f53d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
lib/python/SearchIndex/Index.py
lib/python/SearchIndex/Index.py
+12
-2
No files found.
lib/python/SearchIndex/Index.py
View file @
3d8cdb3e
...
...
@@ -10,12 +10,13 @@
__doc__
=
'''Simple column indexes
$Id: Index.py,v 1.
7 1997/09/17 18:58:08 brian
Exp $'''
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
$Id: Index.py,v 1.
8 1997/09/23 16:46:48 jim
Exp $'''
__version__
=
'$Revision: 1.
8
$'
[
11
:
-
2
]
from
BTree
import
BTree
from
intSet
import
intSet
import
operator
from
Missing
import
MV
ListType
=
type
([])
...
...
@@ -61,6 +62,9 @@ class Index:
for
i
,
row
in
self
.
_data
.
items
(
start
):
k
=
f
(
row
,
id
)
if
k
is
None
or
k
==
MV
:
continue
try
:
set
=
index
[
k
]
except
KeyError
:
set
=
intSet
()
...
...
@@ -81,6 +85,9 @@ class Index:
row
=
self
.
_data
[
i
]
k
=
f
(
row
,
id
)
if
k
is
None
or
k
==
MV
:
return
try
:
set
=
index
[
k
]
except
KeyError
:
set
=
intSet
()
...
...
@@ -146,6 +153,9 @@ class Index:
##############################################################################
#
# $Log: Index.py,v $
# Revision 1.8 1997/09/23 16:46:48 jim
# Added logic to handle missing data.
#
# Revision 1.7 1997/09/17 18:58:08 brian
# Fixed a booboo in unindex_item
#
...
...
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