[sqlalchemy] polymorphic single table inheritance with __mapper_args__ automagically set

2010-09-19 Thread Eduardo Robles Elvira
Hello everyone: I'm having some trouble with polymorphic single table inheritance. I want my subclasses (Ferrari is a subclass of Car) to have the __mapper_args__ automatically set. How could I do that. I've got this: class Car(Base): __tablename__ = 'car' id = Column(Integer,

[sqlalchemy] Re: Polymorphic across foreign key

2010-08-22 Thread Eduardo Robles Elvira
the proxy_set var to the composite_field somehow? Regards, Eduardo Robles Elvira. -- You received this message because you are subscribed to the Google Groups sqlalchemy group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy

Re: [sqlalchemy] Model factory

2010-08-20 Thread Eduardo Robles Elvira
On Fri, Aug 20, 2010 at 10:34 AM, Daniel Kluev dan.kl...@gmail.com wrote: On Fri, Aug 20, 2010 at 7:39 AM, Eduardo Robles Elvira edu...@gmail.com wrote: Now, these functions reimplemented in the inherited class models might be called by the jobs view. It would be very convenient if directly

[sqlalchemy] Model factory

2010-08-19 Thread Eduardo Robles Elvira
Hello everyone: This is my first post in this mailing list/group. My question is simple: is there some way to tell sqlalchemy which method should be called to instance models? Now, some background: I'm working in a project with plugins support. In the project core I've got a Job class model.