Back to index

plone3  3.1.7
Functions | Variables
CMFPlone.patches.dateIndexPatch Namespace Reference

Functions

def _convert
def _convertDateTime

Variables

tuple minDate = DateTime(-2113, 0)
tuple maxDate = DateTime(4008, 0)

Function Documentation

def CMFPlone.patches.dateIndexPatch._convert (   self,
  value,
  default = None 
) [private]

Definition at line 10 of file dateIndexPatch.py.

00010 
00011 def _convert(self, value, default=None):
00012     try:
00013         return self.__old_convert(value, default)
00014     except OverflowError:
00015         return self.__old_convert(maxDate, default)
00016 
00017 DateIndex.__old_convert = DateIndex._convert
00018 DateIndex._convert = _convert

def CMFPlone.patches.dateIndexPatch._convertDateTime (   self,
  value 
) [private]

Definition at line 19 of file dateIndexPatch.py.

00019 
00020 def _convertDateTime(self, value):
00021     try:
00022         return self.__old_convertDateTime(value)
00023     except OverflowError:
00024         return self.__old_convertDateTime(maxDate)
00025 
00026 DateRangeIndex.__old_convertDateTime = DateRangeIndex._convertDateTime
00027 DateRangeIndex._convertDateTime = _convertDateTime
00028 

Variable Documentation

tuple CMFPlone.patches.dateIndexPatch.maxDate = DateTime(4008, 0)

Definition at line 8 of file dateIndexPatch.py.

tuple CMFPlone.patches.dateIndexPatch.minDate = DateTime(-2113, 0)

Definition at line 7 of file dateIndexPatch.py.