Sorry, my mistake. I had added a compute and had misremembered the lambda for computes. I thought they were like lambda's for represent taking two parameters, but the lambda for compute has just one parameter the row.
Thanks Peter On Mar 7, 3:31 pm, Massimo Di Pierro <[email protected]> wrote: > I need to see you model to understand the problem. > > > > > > > > On Wednesday, 7 March 2012 09:15:17 UTC-6, peter wrote: > > > In 1.99.7 I get the following error when doing > > > row.update_record(track_id=track.id) > > > It was working with 1.99.5 > > > Traceback (most recent call last): > > File "C:\Users\Peter\web2pyn\gluon\restricted.py", line 205, in > > restricted > > exec ccode in environment > > File "C:/Users/Peter/web2pyn/applications/british_jazz/controllers/ > > cd_download.py", line 1585, in <module> > > File "C:\Users\Peter\web2pyn\gluon\globals.py", line 173, in > > <lambda> > > self._caller = lambda f: f() > > File "C:/Users/Peter/web2pyn/applications/british_jazz/controllers/ > > cd_download.py", line 295, in album > > row.update_record(track_id=track.id) > > File "C:\Users\Peter\web2pyn\gluon\dal.py", line 1621, in <lambda> > > colset.update_record = lambda _ = (colset, table, id), **a: > > update_record(_, a) > > File "C:\Users\Peter\web2pyn\gluon\dal.py", line 7653, in > > update_record > > table._db(table._id==id).update(**c) > > File "C:\Users\Peter\web2pyn\gluon\dal.py", line 7587, in update > > fields = self.db[tablename]._listify(update_fields,update=True) > > File "C:\Users\Peter\web2pyn\gluon\dal.py", line 6818, in _listify > > new_fields.append((ofield,ofield.compute(Row(fields)))) > > TypeError: <lambda>() takes exactly 2 arguments (1 given) > > > Peter

