[web2py] Re: rows.find doesn't find anything

2011-01-18 Thread Massimo Di Pierro
The DAL should throw an exception in this case. I will add a check. On Jan 18, 4:49 pm, Lorin Rivers wrote: > Right! > > Hey, it might be good to have an example in The Book that uses a different > construction than the one I mistakenly tried to use. > > On Jan 18, 2011, at 15:30 , Massimo Di Pi

Re: [web2py] Re: rows.find doesn't find anything

2011-01-18 Thread Lorin Rivers
Right! Hey, it might be good to have an example in The Book that uses a different construction than the one I mistakenly tried to use. On Jan 18, 2011, at 15:30 , Massimo Di Pierro wrote: > >for row in semaphore_rows.find(lambda row: > row.table_name[0]=='data_table'): >print row

[web2py] Re: rows.find doesn't find anything

2011-01-18 Thread Massimo Di Pierro
for row in semaphore_rows.find(lambda row: row.table_name[0]=='data_table'): print row should be for row in semaphore_rows.find(lambda row: row.table_name=='data_table'): print row else you compare only the first char with 'date_table' On Jan 18, 1:05 pm, Lorin Rivers