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
585ca92f
Commit
585ca92f
authored
Jul 30, 2002
by
Shane Hathaway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made integer overflows in DateIndex easier to deal with.
parent
91187746
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
lib/python/Products/PluginIndexes/DateIndex/DateIndex.py
lib/python/Products/PluginIndexes/DateIndex/DateIndex.py
+8
-2
No files found.
lib/python/Products/PluginIndexes/DateIndex/DateIndex.py
View file @
585ca92f
...
...
@@ -11,7 +11,7 @@
#
##############################################################################
"""$Id: DateIndex.py,v 1.
5 2002/06/30 05:45:35 chrism
Exp $
"""$Id: DateIndex.py,v 1.
6 2002/07/30 16:25:46 shane
Exp $
"""
from
DateTime.DateTime
import
DateTime
...
...
@@ -186,7 +186,13 @@ class DateIndex(UnIndex):
t_val
=
(
(
(
(
yr
*
12
+
mo
)
*
31
+
dy
)
*
24
+
hr
)
*
60
+
mn
)
return
t_val
try
:
# t_val must be IntType, not LongType
return
int
(
t_val
)
except
OverflowError
:
raise
OverflowError
,
(
"%s is not within the range of indexable dates (index: %s)"
%
(
value
,
self
.
id
))
manage_addDateIndexForm
=
DTMLFile
(
'dtml/addDateIndex'
,
globals
()
)
...
...
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