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
808f644d
Commit
808f644d
authored
Jun 06, 2002
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Use multiunion for range searches on DateIndex, too.
parent
b3048e12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
lib/python/Products/PluginIndexes/DateIndex/DateIndex.py
lib/python/Products/PluginIndexes/DateIndex/DateIndex.py
+8
-7
No files found.
lib/python/Products/PluginIndexes/DateIndex/DateIndex.py
View file @
808f644d
...
...
@@ -20,7 +20,7 @@ from types import StringType, FloatType, IntType
from
Globals
import
DTMLFile
from
BTrees.IOBTree
import
IOBTree
from
BTrees.OIBTree
import
OIBTree
from
BTrees.IIBTree
import
IISet
,
union
,
intersection
from
BTrees.IIBTree
import
IISet
,
union
,
intersection
,
multiunion
_marker
=
[]
...
...
@@ -134,15 +134,16 @@ class DateIndex(UnIndex):
hi
=
None
if
hi
:
setlist
=
index
.
item
s
(
lo
,
hi
)
setlist
=
index
.
value
s
(
lo
,
hi
)
else
:
setlist
=
index
.
item
s
(
lo
)
setlist
=
index
.
value
s
(
lo
)
#for k, set in setlist:
#if type(set) is IntType:
#set = IISet((set,))
#r = set_func(r, set)
# XXX: Use multiunion!
for
k
,
set
in
setlist
:
if
type
(
set
)
is
IntType
:
set
=
IISet
((
set
,))
r
=
set_func
(
r
,
set
)
r
=
multiunion
(
setlist
)
else
:
# not a range search
for
key
in
keys
:
...
...
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