On Tuesday, December 13, 2016 at 7:25:58 AM UTC-5, Ramos wrote:
>
> I think you meant something like this
>
>     form.vars.uuid=cal_uuid()
>     if form.process().accepted:
>

No, the presumption is that this form is editing an existing record, so 
just use the value from the existing record. If the form is not editing an 
existing record (and there is therefore no pre-existing value for the uuid 
field), then just exclude the field from the form altogether and let the 
DAL compute the value when the record is inserted.

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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to