[sqlalchemy] Adapting the polymorphic association example for generic reuse

2011-10-02 Thread Ahmed
I am looking at http://www.sqlalchemy.org/trac/browser/examples/generic_associations/discriminator_on_association.py and trying to adapt the example to one that is generic and can be reused. So I attempted to abstract all the classes. However there seems to be an error in the __new__ function of

Re: [sqlalchemy] Adapting the polymorphic association example for generic reuse

2011-10-02 Thread Michael Bayer
line 21 creates an AssociationBase passing two arguments to the constructor, but AssociationBase has no __init__ and accepts no arguments. I'd strongly recommend using pdb to track down issues like these. On Oct 2, 2011, at 5:26 AM, Ahmed wrote: I am looking at