Re: [SQLObject] help with TimestampCol()
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: inhahe <in...@gm...> - 2008-12-13 01:57:09
|
That worked! On Fri, Dec 12, 2008 at 7:40 PM, Oleg Broytmann <ph...@ph...> wrote: > On Fri, Dec 12, 2008 at 07:21:04PM -0500, inhahe wrote: >> Can someone help me understand this? I thought the whole point of a >> TimestampCol was to automatically stamp the creation of a record with >> the current time and date -- otherwise you might as well use a >> DateTimeCol. yet when i try to create a new instance of a table with >> a TimestampCol without specifying the TimestampCol keyword, it gives >> me an error. if i have to tell it what to put, why even have a >> TimestampCol()? So what am I supposed to pass it to make it stamp it >> with the current time? > > I think you need TimestampCol(default=None) on creation. Can you test it > and report if it works? Then I will add to my TODO to make this the > default. > > Oleg. > -- > Oleg Broytmann http://phd.pp.ru/ ph...@ph... > Programmers don't die, they just GOSUB without RETURN. > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > sqlobject-discuss mailing list > sql...@li... > https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss > |