Hi guys!
How can I use TimeCol? What should be the data to create a new object?
I try as above:
from sqlobject import *
import datetime
class Test(SQLObject):
_connection = ...
time = TimeCol()
try:
Test(time=datetime.time(9, 0)) # this should work according to the tests
except Exception, e:
print e
try:
Test(time=datetime.datetime(2006, 10, 26, 9, 0))
except Exception, e:
print e
try:
Test(time=datetime.timedelta(hours=9))
except Exception, e:
print e
I don't have py.test but the code above should work, or shouldn't?
What am I doing wrong?
Thanks for any help, regards!
--
Michel Thadeu Sabchuk
Curitiba - Brasil
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss