Re: [sqlalchemy] Model factory

2010-08-22 Thread Diez B. Roggisch
Thanks Diez and Daniel for the responses. It seems that this is the way to go, but it's not quite there yet: now I can indeed load the correct lass instance for my queries, but it seems to be restricted to inherited classes already loaded in my current module. What would like to do is being to

Re: [sqlalchemy] Model factory

2010-08-20 Thread Diez B. Roggisch
On Aug 19, 2010, at 10:39 PM, Eduardo Robles Elvira wrote: 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

Re: [sqlalchemy] Model factory

2010-08-20 Thread Daniel Kluev
On Fri, Aug 20, 2010 at 7:39 AM, Eduardo Robles Elvira edu...@gmail.comwrote: Now, these functions reimplemented in the inherited class models might be called by the jobs view. It would be very convenient if directly when I get the jobs from the database with sqlalchemy I could directly get

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.