Hi,
My system is running fine with SQLObject 0.6, but when I try to run it
with 0.6.1 or 0.7b1 I get this error:
Invalid: expected a datetime in the DateTimeCol 'data_cadastro', got
<type 'str'> instead
[/usr/lib/python2.4/site-packages/SQLObject-0.7b1-py2.4.egg/sqlobject/col.py:848]
I know it is because I'm using 'now()' as the default value. The real
problem is that when I change it to datetime.today() everything starts
to be recorded with the same date. This happens because the class
definitions are in a different module and ModPython caches imports
(datetime.today gets cached and isn't updated until Apache restarts).
I know this cache isn't a problem with SQLObject itself, but I can't
upgrade to 0.6.1 because of its datetime restrictions... AFAIK I can't
disable ModPython's import cache, do you have any suggestions?
--
Humberto Diógenes
Diginet Brasil
--
Esta mensagem foi verificada pelo sistema de anti-virus e
acredita-se estar livre de perigo.
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@???
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss