Re: [SQLObject] I wish bool evaluation of selectResults objects ran .count()
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ph...> - 2010-01-27 16:37:54
|
On Wed, Jan 27, 2010 at 04:27:03PM +0000, Matthew Wilson wrote: > Here's another solution -- instead of defining nonzero, what about > defining __len__, so I could use this approach on both lists AND > selectResults objects: http://sqlobject.org/FAQ.html#why-there-is-no-len Oleg. -- Oleg Broytman http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |