[web2py] Re: bug in dal.py with multicolumn primary keys

2011-06-05 Thread Kevin Ivarsen
Oops - looks like the fix already made its way into 1.96.2 or 1.96.3. Great! Kevin On Jun 2, 2:34 pm, Massimo Di Pierro wrote: > will fix this tonight. > > On Jun 2, 1:00 pm, Loren McGinnis wrote: > > > > > > > > > I'm bumping this message, because the bug still hasn't been fixed in > > the new

[web2py] Re: bug in dal.py with multicolumn primary keys

2011-06-05 Thread Kevin Ivarsen
I ran into this awhile back, and the following fix worked for me. There might be a cleaner way to do it, but I'll offer it here: if hasattr(table,'_primarykey'): fields = [(field.name, value) for field, value in fields] fields = dict(fields) return dict( [ (k,fields[k]) for k in table._prima

[web2py] Re: bug in dal.py with multicolumn primary keys

2011-06-02 Thread Massimo Di Pierro
will fix this tonight. On Jun 2, 1:00 pm, Loren McGinnis wrote: > I'm bumping this message, because the bug still hasn't been fixed in > the new release. > > The erroneous line is now line 822 in dal.py, version 1.96.1.  It > worked correctly after I applied the same fix. > > On Apr 29, 12:30 pm,

[web2py] Re: bug in dal.py with multicolumn primary keys

2011-06-02 Thread Loren McGinnis
I'm bumping this message, because the bug still hasn't been fixed in the new release. The erroneous line is now line 822 in dal.py, version 1.96.1. It worked correctly after I applied the same fix. On Apr 29, 12:30 pm, Loren McGinnis wrote: > I'm using a legacy database that has a table with mu