Commit e9f62d83 authored by Andreas Jung's avatar Andreas Jung

added additional check for DateTime objects

parent adb9ceb7
......@@ -83,11 +83,12 @@
#
#############################################################################
__version__ = '$Id: util.py,v 1.4 2001/06/01 18:53:40 andreas Exp $'
__version__ = '$Id: util.py,v 1.5 2001/06/11 16:04:21 andreas Exp $'
import re
from types import StringType,ListType,TupleType,DictType,InstanceType
from DateTime import DateTime
class parseIndexRequest:
"""
......@@ -145,6 +146,14 @@ class parseIndexRequest:
keys = request[iid]
if type(keys) == InstanceType:
if isinstance(keys,DateTime):
"""query is a DateTime instance"""
self.keys = keys
else:
""" query is of type record """
record = keys
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment