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
4fff45ca
Commit
4fff45ca
authored
Oct 10, 1997
by
Jeffrey Shell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed min:max buglet
parent
e8e3d9ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
lib/python/SearchIndex/Index.py
lib/python/SearchIndex/Index.py
+11
-3
No files found.
lib/python/SearchIndex/Index.py
View file @
4fff45ca
...
...
@@ -10,8 +10,8 @@
__doc__
=
'''Simple column indexes
$Id: Index.py,v 1.1
0 1997/10/10 18:34:56
jeffrey Exp $'''
__version__
=
'$Revision: 1.1
0
$'
[
11
:
-
2
]
$Id: Index.py,v 1.1
1 1997/10/10 19:25:03
jeffrey Exp $'''
__version__
=
'$Revision: 1.1
1
$'
[
11
:
-
2
]
from
BTree
import
BTree
from
intSet
import
intSet
...
...
@@ -122,6 +122,10 @@ class Index:
If the request does not contain the needed parameters, then None is
returned.
If the request contains a parameter with the name of the column
+ '_usage', it is sniffed for information on how to handle applying
the index.
Otherwise two objects are returned. The first object is a
ResultSet containing the record numbers of the matching
records. The second object is a tuple containing the names of
...
...
@@ -157,7 +161,8 @@ class Index:
anyTrue
=
1
try
:
setlist
=
index
.
items
(
lo
,
hi
)
if
hi
:
setlist
=
index
.
items
(
lo
,
hi
)
else
:
setlist
=
index
.
items
(
lo
)
for
k
,
set
in
setlist
:
if
r
is
None
:
r
=
set
else
:
r
=
r
.
union
(
set
)
...
...
@@ -181,6 +186,9 @@ class Index:
##############################################################################
#
# $Log: Index.py,v $
# Revision 1.11 1997/10/10 19:25:03 jeffrey
# fixed min:max buglet
#
# Revision 1.10 1997/10/10 18:34:56 jeffrey
# Added range searching/indexing
#
...
...
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