Hi, Michael!

On Monday September 1, 2008 19:54:05 Michael Bayer wrote:
> sess.query(Website).filter(Website.materials.any())
>
> neat huh ?

Yeah, that's very smart! Thank you.

> that "materials=[]" declaration is not needed BTW, the collection  
> defaults to an empty list due to the relation() set up on it.

I know, but I declared it so that I can document that attribute with Epydoc.

Cheers!
-- 
Gustavo Narea.
General Secretary. GNU/Linux Matters.
http://www.gnulinuxmatters.org/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to