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.
> 
> 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.orm.dynamic.AppenderMixin'>, <class 
> 'sqlalchemy.orm.query.Query'>)
> 
> I would like this query object to inherit from my caching_query class, so I 
> can get it to play with our beaker caching system.
> 
> Is there some way to do this?  Or some other approach I should be thinking 
> about instead?
> 
> I am currently passing my caching_query class to sessionmaker(), and calls to 
> Session.query() return correctly return caching_query instances.
> 
> --bill
> 
> 
> 
> -- 
> 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.

-- 
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