Re: [sqlalchemy] discriminator_on_association example and association proxies

2013-04-03 Thread bruk.habtu
Hey Michael, Thanks for the speedy response. I went ahead and changed my implementation using the table_per_association example and everything works great. On Tuesday, 2 April 2013 16:49:14 UTC-4, Michael Bayer wrote: the Customer.comments attribute proxies through comment_association

[sqlalchemy] discriminator_on_association example and association proxies

2013-04-02 Thread bruk.habtu
I was attempting to implement the example shown in https://github.com/ContextLogic/sqlalchemy/blob/master/examples/generic_associations/discriminator_on_association.py trace: https://gist.github.com/brukhabtu/2294f0873830243845db my code: https://gist.github.com/brukhabtu/1423c9825252ddcf85a5

Re: [sqlalchemy] discriminator_on_association example and association proxies

2013-04-02 Thread Michael Bayer
the Customer.comments attribute proxies through comment_association which is configured as a scalar.this should probably be improved in this particular recipe, but for starting assignment you need to assign a collection first: c1 = Customer() c1.comments = [] I don't ever use