this is still there: File "sqlalchemy/orm/mapper.py", line 168, in __init__ self.with_polymorphic[1] = self.with_polymorphic[1].alias() TypeError: 'tuple' object does not support item assignment
also, related question: once there is A-B-C, concrete, how u'd get some A by id? query(A).filter_by(id=1) returns 3 objects, one of A,B,C. i guess some filter( mapper.polymorphic_on == 'Aidentity') should be there, but how to guess if A is inherited concrete hence needs that? or is that automaticaly done by query.get() and i missed it? On Wednesday 03 December 2008 19:29:31 Michael Bayer wrote: > it needed some more work. the final version of this fix is in > r5412. > > On Dec 3, 2008, at 10:49 AM, Gaetan de Menten wrote: > > On Wed, Dec 3, 2008 at 16:04, Michael Bayer > > > > <[EMAIL PROTECTED]> wrote: > >> this ones big, i can handle it. the attached patch makes your > >> case work, but the problem represented here still makes itself > >> apparent in other ways and I havent strength tested this patch. > >> you might want to see if this patch works in all of your test > >> cases. > > > > FWIW, my (only) "more complete" test involving polymorphic > > concrete inheritance passes too (and produces correct SQL). > > Your patch seem fine and doesn't seem to break unrelated tests. > > > > Thanks for the quick reaction time, as usual. > > -- > > Gaëtan de Menten > > http://openhex.org > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---