On Fri, May 19, 2006 at 12:41:11PM -0500, Ian Bicking wrote:
> def __nonzero__(self):
>     raise NotImplementedError(
>         "To test if a SelectResult will produce any items, use 
> list(result) or result.count()")

   It is now in the trunk.

> I'm not sure if it's a big backward compatibility problem, as I suspect 
> it will reveal as many bugs as it does correct code that won't work. 
> The only nuisance will be a place where people expect None, 0, and/or 
> other false items, and are using the current behavior to distinguish 
> those from SelectResult.  That seems uncommon.  If they just expect 
> None, replace it with "is None".

   Exactly this happens in sqlobject/util/csvexport.py. ;) I fixed it.

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            [EMAIL PROTECTED]
           Programmers don't die, they just GOSUB without RETURN.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to