On Wed, Jan 17, 2007 at 09:10:00PM +0300, Oleg Broytmann wrote:
> > What I would like to do is pass an sresult directly:
> > sqlobject.Delete(Klass.selectBy(otherKlassID = 10))
> > or even
> > Klass.selectBy(otherKlassID = 10).destroy()
BTW, there is SQLExpression in sqlbuilder.py worth to take e a look. You
can use it in Delete:
Delete(Klass, Klass.q.otherKlassID == 10)
'q' is a magic attribute that produces SQLExpression, and any operation
on SQLExpressions produces SQLExpression.
PS. And of course SelectResults is SELECT results ;)
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