On Thursday, November 7, 2013 10:06:57 AM UTC-5, Jonathan Lundell wrote: > On 7 Nov 2013, at 6:00 AM, Anthony <[email protected] <javascript:>> > wrote: > > Actually, my original explanation wasn't quite correct -- I made the > corrections in the original post (same conclusion though -- #2 should be > preferred, but they should both result in nearly the same value). I don't > see how using datetime.now would lead to the error you are getting, but go > ahead and make the change and see if it helps. > > > What was the correction? Seems to me if #1 works at all it's because it's > getting recognized as a function and called; str() doesn't call it, at > least in my testing. >
I made the correction directly to the original reply. You've got it -- if the value inserted is a callable, the DAL calls it to generate a value. Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

