What is "query"? On Sunday, February 21, 2016 at 5:55:43 PM UTC-5, goome wrote: > > hello > i need to update a record (by mean of an update_or_insert or by > update_record). > But the statement with the new values is built programaticaly in 2 step. > So i fist create a dict with nuewvalues=dict(field1=value1,field2=value2) > then i eventually add some value with newvalues['otherfield']=value3, ect > but i got error: > Traceback (most recent call last): > File "/home/www-data/web2py/gluon/shell.py", line 263, in run > execfile(startfile, _env) > File "applications/PROVE/private/automazione.py", line 225, in <module> > ret = previous_cruscu.update_record(query) > TypeError: __call__() takes exactly 1 argument (2 given) > > i should i build the dictionary of new vales? >
-- 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/d/optout.

