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
448d99bd
Commit
448d99bd
authored
Nov 30, 2005
by
Martijn Pieters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge r 40426 from the trunk: make DateIndexes upgradeble from Zope 2.7 by way
of a re-index.
parent
aebc3a08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
lib/python/Products/PluginIndexes/DateIndex/DateIndex.py
lib/python/Products/PluginIndexes/DateIndex/DateIndex.py
+2
-1
No files found.
lib/python/Products/PluginIndexes/DateIndex/DateIndex.py
View file @
448d99bd
...
...
@@ -20,6 +20,7 @@ from datetime import date, datetime
from
datetime
import
tzinfo
,
timedelta
from
types
import
StringType
,
FloatType
,
IntType
import
BTrees.Length
from
BTrees.IIBTree
import
IISet
,
union
,
intersection
,
multiunion
from
BTrees.IOBTree
import
IOBTree
from
BTrees.OIBTree
import
OIBTree
...
...
@@ -111,7 +112,7 @@ class DateIndex(UnIndex, PropertyManager):
""" Complete reset """
self
.
_index
=
IOBTree
()
self
.
_unindex
=
OIBTree
()
self
.
_length
.
set
(
0
)
self
.
_length
=
BTrees
.
Length
.
Length
(
)
def
index_object
(
self
,
documentId
,
obj
,
threshold
=
None
):
"""index an object, normalizing the indexed value to an integer
...
...
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