[sqlalchemy] Customized order_by in tree of Mixins relationship

2011-11-19 Thread Hector Blanco
Hi everyone: I have an object structure that uses (heavily) object orientation. I have a BaseObject class that is the class for three kinds of subclasses, Element1, Element2 and Element3. In my application I have a tree of BaseObject elements: class BaseObject(declarative):

Re: [sqlalchemy] Customized order_by in tree of Mixins relationship

2011-11-19 Thread Michael Bayer
On Nov 19, 2011, at 7:42 PM, Hector Blanco wrote: As you can see, only two of those classes have a _name attribute. What I'd like to know is if I can set an order_by in the BaseObject._children relationship that does the following: 1) Sort by type, but not the default ordering. If I set up