[web2py] Re: Auth.signature not updating update_on
auth.signature includes a modified_on field, not an update_on field. Also, if you update a record by making changes to the row object and then calling row.update_record() (with no arguments), it will update the record with all the existing values (so modified_on will not be changed). Anthony On Monday, June 26, 2017 at 1:21:43 PM UTC-4, Ramos wrote: > > Hi, > > my table > db.define_table( > 'entities', > Field('uuid',length=64,default=lambda:str(uuid.uuid4())), > Field('entity',required=True,label=T("Entity")), > Field('description',label=T("Description"),default=""), > Field('status', db.status), > Field('type','reference dbentities',label=T("Type")), > # Field('workflow','reference workflows',label="Workflow"), > Field('event'), > Field("last_error",default=""), > Field('readers','list:string',default=[""]), > auth.signature, > format='%(entity)s', > ) > the field *update_on* is not being updated when i update a record via > code. > > if i update a record via appadmin it does also not update *update_on* > field > > Help :) > > thank you > -- 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.
Re: [web2py] Re: Auth.signature not updating update_on
Yes anthony i meant modified_on ,not update_on I have this code table[id]=dict(field1=1,field2=2) the row is updated but the *modified_on* is not. Regards 2017-06-26 19:48 GMT+01:00 Anthony : > auth.signature includes a modified_on field, not an update_on field. > > Also, if you update a record by making changes to the row object and then > calling row.update_record() (with no arguments), it will update the record > with all the existing values (so modified_on will not be changed). > > Anthony > > > On Monday, June 26, 2017 at 1:21:43 PM UTC-4, Ramos wrote: >> >> Hi, >> >> my table >> db.define_table( >> 'entities', >> Field('uuid',length=64,default=lambda:str(uuid.uuid4())), >> Field('entity',required=True,label=T("Entity")), >> Field('description',label=T("Description"),default=""), >> Field('status', db.status), >> Field('type','reference dbentities',label=T("Type")), >> # Field('workflow','reference workflows',label="Workflow"), >> Field('event'), >> Field("last_error",default=""), >> Field('readers','list:string',default=[""]), >> auth.signature, >> format='%(entity)s', >> ) >> the field *update_on* is not being updated when i update a record via >> code. >> >> if i update a record via appadmin it does also not update *update_on* >> field >> >> Help :) >> >> thank you >> > -- > 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. > -- 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.
Re: [web2py] Re: Auth.signature not updating update_on
We probably need to see more code and an exact description of the workflow to make the update and check whether it was applied. Anthony On Tuesday, June 27, 2017 at 5:02:04 AM UTC-4, Ramos wrote: > > Yes anthony i meant modified_on ,not update_on > > I have this code > > table[id]=dict(field1=1,field2=2) > > the row is updated but the *modified_on* is not. > > > Regards > > > 2017-06-26 19:48 GMT+01:00 Anthony : > >> auth.signature includes a modified_on field, not an update_on field. >> >> Also, if you update a record by making changes to the row object and then >> calling row.update_record() (with no arguments), it will update the record >> with all the existing values (so modified_on will not be changed). >> >> Anthony >> >> >> On Monday, June 26, 2017 at 1:21:43 PM UTC-4, Ramos wrote: >>> >>> Hi, >>> >>> my table >>> db.define_table( >>> 'entities', >>> Field('uuid',length=64,default=lambda:str(uuid.uuid4())), >>> Field('entity',required=True,label=T("Entity")), >>> Field('description',label=T("Description"),default=""), >>> Field('status', db.status), >>> Field('type','reference dbentities',label=T("Type")), >>> # Field('workflow','reference workflows',label="Workflow"), >>> Field('event'), >>> Field("last_error",default=""), >>> Field('readers','list:string',default=[""]), >>> auth.signature, >>> format='%(entity)s', >>> ) >>> the field *update_on* is not being updated when i update a record via >>> code. >>> >>> if i update a record via appadmin it does also not update *update_on* >>> field >>> >>> Help :) >>> >>> thank you >>> >> -- >> 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. >> > > -- 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.
Re: [web2py] Re: Auth.signature not updating update_on
For this simple test db.define_table('tab1', Field('name'), auth.signature ) i got to admin and create a record Initially the record is saved with modified_on as 2017-07-21 16:21:36 then via admin i edit the record and change name field and save. The modified_on is still with 2017-07-21 16:21:36 Is this normal? Regards 2017-06-27 16:40 GMT+01:00 Anthony : > We probably need to see more code and an exact description of the workflow > to make the update and check whether it was applied. > > Anthony > > > On Tuesday, June 27, 2017 at 5:02:04 AM UTC-4, Ramos wrote: >> >> Yes anthony i meant modified_on ,not update_on >> >> I have this code >> >> table[id]=dict(field1=1,field2=2) >> >> the row is updated but the *modified_on* is not. >> >> >> Regards >> >> >> 2017-06-26 19:48 GMT+01:00 Anthony : >> >>> auth.signature includes a modified_on field, not an update_on field. >>> >>> Also, if you update a record by making changes to the row object and >>> then calling row.update_record() (with no arguments), it will update the >>> record with all the existing values (so modified_on will not be changed). >>> >>> Anthony >>> >>> >>> On Monday, June 26, 2017 at 1:21:43 PM UTC-4, Ramos wrote: Hi, my table db.define_table( 'entities', Field('uuid',length=64,default=lambda:str(uuid.uuid4())), Field('entity',required=True,label=T("Entity")), Field('description',label=T("Description"),default=""), Field('status', db.status), Field('type','reference dbentities',label=T("Type")), # Field('workflow','reference workflows',label="Workflow"), Field('event'), Field("last_error",default=""), Field('readers','list:string',default=[""]), auth.signature, format='%(entity)s', ) the field *update_on* is not being updated when i update a record via code. if i update a record via appadmin it does also not update *update_on* field Help :) thank you >>> -- >>> 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. >>> >> >> -- > 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. > -- 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.
Re: [web2py] Re: Auth.signature not updating update_on
In appadmin, I think all fields are made writable, which means the modified_on field should appear in the form - is that what you see? If so, the old value will simply be submitted with the form, so the value will not be updated (unless you manually change it). The automatic update will only happen if no value is submitted with the form (i.e., the field is not included in the form). 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.
Re: [web2py] Re: Auth.signature not updating update_on
Great and simple. Thank you Anthony 2017-07-21 22:19 GMT+01:00 Anthony : > In appadmin, I think all fields are made writable, which means the > modified_on field should appear in the form - is that what you see? If so, > the old value will simply be submitted with the form, so the value will not > be updated (unless you manually change it). > > The automatic update will only happen if no value is submitted with the > form (i.e., the field is not included in the form). > > 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. > -- 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.