[sqlalchemy] Re: column_property or relationship

2011-05-24 Thread boothead
Awesome Mike thanks, sorry for the delay writing this, I didn't get an update for some reason! Much appreciated. On May 19, 5:06 pm, Michael Bayer mike...@zzzcomputing.com wrote: this issue is fixed, you can download the tip of 0.6 or 0.7 in the development versions section at:

Re: [sqlalchemy] Re: Declarative: Joined Inheritance + Two Tables To One Object

2011-05-24 Thread Michael Bayer
On May 23, 2011, at 10:32 PM, Israel Ben Guilherme Fonseca wrote: D'oh, I figured myself, It was very easy. I just followed the guide again and it worked. One question though. Let's use the guide example for this: Let's say that AddressUser inherits(joined inheritance) from another

[sqlalchemy] Getting AppenderQuery to inherit from my caching_query class, instead of from Query?

2011-05-24 Thread Bill Curtis
I have model object with particular property defined as a lazy=dynamic relationship. When I look at the __class__ of this property in the debugger, I get this: sqlalchemy.orm.dynamic.AppenderQuery and when I inspect it's __bases__, I get this: (class

[sqlalchemy] or_(MyClass.relationship1.contains(item), MyClass.relationship2.contains(item)) returns empty list

2011-05-24 Thread Hector Blanco
Hello everybody... Let's say I have a class like this: class Foo(declarativeBase): bars1 = relationship(Bar.Bar, secondary=foos_to_bars1, collection_class=set()) bars2 = relationship(Bar.Bar, secondary=foos_to_bars2, collection_class=list()) At a certain point, I want to get

Re: [sqlalchemy] Getting AppenderQuery to inherit from my caching_query class, instead of from Query?

2011-05-24 Thread Michael Bayer
slight documentation failure, now resolved. check out query_class at http://www.sqlalchemy.org/docs/orm/relationships.html#sqlalchemy.orm.relationship . On May 24, 2011, at 4:57 PM, Bill Curtis wrote: I have model object with particular property defined as a lazy=dynamic relationship.