[sqlalchemy] Get all the instances of class A that are using an specific instance of class B (SqlAlchemy 0.6.9)

2012-05-16 Thread Hector Blanco
Hello everybody! I would like to know if it's possible to create an optimized query that gives all the elements of a class A that have a relationship to an specific class B Here's the thing: I have a pretty simple class Region that defines an area in the screen: class Region(declarativeBase):

Re: [sqlalchemy] Get all the instances of class A that are using an specific instance of class B (SqlAlchemy 0.6.9)

2012-05-16 Thread Michael Bayer
On May 16, 2012, at 5:50 PM, Hector Blanco wrote: Hello everybody! I would like to know if it's possible to create an optimized query that gives all the elements of a class A that have a relationship to an specific class B from the below it seems like you mean a specific *instance* B...

Re: [sqlalchemy] Get all the instances of class A that are using an specific instance of class B (SqlAlchemy 0.6.9)

2012-05-16 Thread Hector Blanco
2 days trying by myself... 20 minutes with your answer... I still don't know why I didn't try what you said... Thank you, Michael 2012/5/16 Michael Bayer mike...@zzzcomputing.com: On May 16, 2012, at 5:50 PM, Hector Blanco wrote: Hello everybody! I would like to know if it's possible to