[web2py] Re: AttributeError: 'Rows' object has no attribute '_db'

2012-01-11 Thread Rahul
Thanks Anthony, That works! I've changed other queries giving me this error and it works fine now. Thanks a million. :) Sincerely, Rahul D. On Jan 10, 7:46 pm, Anthony abasta...@gmail.com wrote: On Monday, January 9, 2012 11:54:08 PM UTC-5, Rahul wrote: I did not get it... What would be an

[web2py] Re: AttributeError: 'Rows' object has no attribute '_db'

2012-01-10 Thread Anthony
On Monday, January 9, 2012 11:54:08 PM UTC-5, Rahul wrote: I did not get it... What would be an equivalent query I would need to pass for below? I need to just select rows (Friend_name column for all status that are Friend and reguserid is whatever the logged in users id) for below

[web2py] Re: AttributeError: 'Rows' object has no attribute '_db'

2012-01-09 Thread Rahul
Please Note, if I use this alternate query (just to test) -- It would not give me the error BUT, this is not the query I intend to run.. #query = ((db.friends.reguserid==session.logged_in_user_id) and (db.friends.status==Sent)) It gives me the error even if I use below query-- query =

[web2py] Re: AttributeError: 'Rows' object has no attribute '_db'

2012-01-09 Thread Anthony
SQLFORM.grid takes a query as the first argument, and you are passing a Rows object instead (i.e., you have applied the .select() method to your query). Just pass in the query without the .select(). Anthony On Monday, January 9, 2012 6:12:55 AM UTC-5, Rahul wrote: Hi All, Why do I

[web2py] Re: AttributeError: 'Rows' object has no attribute '_db'

2012-01-09 Thread Rahul
I did not get it... What would be an equivalent query I would need to pass for below? I need to just select rows (Friend_name column for all status that are Friend and reguserid is whatever the logged in users id) for below conditions - I thought select was a valid query! Please suggest