Re: [SQLObject] selectBy method problem

2008-01-19 Thread Leandro Sales
The correct is: MyTable.selectBy(name = pets) You're using == instead of = Leandro. On 1/19/08, Petr Jakeš [EMAIL PROTECTED] wrote: Hi, I have following problem: following code throw this error: unhandled NameError, global name 'name' is not defined and I really do not know what to do

Re: [SQLObject] selectBy method problem

2008-01-19 Thread Leandro Sales
In fact, this is another way to do what you want. On 1/19/08, Petr Jakeš [EMAIL PROTECTED] wrote: Problem solved, p = MyTable.select(MyTable.q.name == pets) works instead of: p = MyTable.selectBy(name == pets) Sorry for bothering your weekend time :-) Petr On Jan 19, 2008 6:17 PM, Petr

Re: [SQLObject] Select by max

2008-01-19 Thread Simon Cross
On Jan 19, 2008 10:20 PM, Oleg Broytmann [EMAIL PROTECTED] wrote: On Sat, Jan 19, 2008 at 01:08:38PM +0100, Petr Jake?? wrote: trying to select ALL rows from the table with the max value in a specified field I can go: tmax=Prodcats.select().max('tStamp') for row in