On Jun 26, 2011, at 2:51 PM, Arthur Kopatsy wrote:

> Thanks Michael.
> 
> However, I also want my queries to return objects with the helpers.
> The rebasing method does achieve this but I am not sure how the method
> you are describing will.

It absolutely does because the class you define with "Base" + helpers.<some 
mixin> is the class that gets mapped.    SomeWidget is the class that's mapped. 
 Any instance of SomeWidget, returned by Query, will include both Base as well 
as the helpers.Widget in its __mro__.

> 
> Using mixin is interesting but it will force my applications to map
> them and therefore know about the table layout.

Well yes that is a different approach which is not appropriate here.   I had 
the opposite issue that you do here.

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to