[SQLObject] MaxDateTime for DateTimeCol
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Robert F. <fo...@zi...> - 2005-08-23 07:57:16
|
hi, wouldn't it be useful to include a DateTime module specific MaxDateTime for validation of date-time input (in sqlobject/col.py i guess)? When mxDateTime is not available, MaxDateTime is limited by time.mktime() to somewhen in the year 2037. With mxDateTime its >>> DateTime.MaxDateTime <DateTime object for '5867440-12-31 00:00:00.00' at 403a6d78> I ran into this problem, when trying to set MaxDateTime as default for a DateTimeCol. best regards, robert -- the idea is to keep the green alien landing craft from taking up humans from the ground and changing them into mutants. a mutant is very dangerous to you, because it flies faster than you do and shoots at you. |