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
On Tuesday, December 13, 2016 at 4:56:33 AM UTC-5, Ramos wrote:
>
> Antony if i remove the uuid field from the form then when i save it the
> uuid field will be set to None.
>
Didn't say to remove it -- given your current code, you would either want
to add it as a hidden field or use
I think you meant something like this
form.vars.uuid=cal_uuid()
if form.process().accepted:
this way i can ignore uuid in the form
2016-12-13 9:55 GMT+00:00 António Ramos :
> Antony if i remove the uuid field from the form then when i save it the
> uuid field
Antony if i remove the uuid field from the form then when i save it the
uuid field will be set to None.
uuid is a computed field.You said *presumably you have access to the
original value on the server from the database record,* how
Regards
António
2016-12-12 20:45 GMT+00:00 Anthony
You could instead use _readonly=True or put a copy in a hidden field with
the same name. But keep in mind that you should still validate the data on
the server. Alternatively, presumably you have access to the original value
on the server from the database record, so why not just use that
5 matches
Mail list logo