On Mon, Apr 09, 2007 at 02:24:17PM -0700, j j wrote:
> I am working with an existing application that uses mxDateTime therefore, I
> am wondering if there is a straightforward way to set
> default_datetime_implementation to mxDateTime
from sqlobject import *
from sqlobject import col
col.default_datetime_implementation = MXDATETIME_IMPLEMENTATION
Do this *before* defining your classes. See test_datetime.py for an
> (perhaps when configuring the connection).
Unfortunately it is hard to reset the validator/converter based on
connection settings; so if you need two connections in one program
(SQLObject allows this), one with datetime and the other with mxDateTime,
you have to create two different classes.
Oleg Broytmann http://phd.pp.ru/ phd@...
Programmers don't die, they just GOSUB without RETURN.