Re: reusing python objects

2007-05-24 Thread James Bennett
On 5/24/07, wesman <[EMAIL PROTECTED]> wrote: > I just don't want to have to write this stuff all again and > maintain two copies of it - can I use multi-inheritance and create a > model that is sub-classed from my "job" class and the models class? Sure. The only time you'll run into problems is

Re: reusing python objects

2007-05-24 Thread Doug B
Your proposed solution is exactly what I did. I think the official term is a 'mixin class'. It's worked out really well so far.In my case the mixin class looks for the Event class defined in the model for various settings. In your case they might contain a mapping between your mixin model d

reusing python objects

2007-05-24 Thread wesman
hi - I am a total django newbie - in fact, I've done not much more than install it - I have an important question that I can't seem to find an answer to in the FAQ - perhaps someone here can help, because without being able to do this, django might not work for me :( Anyway I have a softwar