if you set them on the db, then there's no need to use Field(...., 
default=request.now, update=request.now) . Of course if you use them in 
Fields, then the one on the backend won't work 'cause web2py will send them 
explicitely when constructing the update or the insert related query.

On Wednesday, September 25, 2013 9:27:04 PM UTC+2, Tom H wrote:
>
> Hi,
>
> Quick question: I'd like to use the backend database functions for setting 
> the datetime defaults, for columns like created_on and modified_on
>
> I'm assuming web2py is using the timestamps in the request objects to do 
> it client side as part of inserts/updates, instead of the db server setting 
> it to something like getdate() function values, is that correct?  is there 
> a workaround?
>
> Thanks,
>
> Tom
>
> PS, Sorry if it's been posted, I've actually skimmed through a whole bunch 
> of threads and the book and couldn't find an answer, maybe someone know off 
> the top of their head.
>
>
>

-- 
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.

Reply via email to