Re: [sqlalchemy] hybrid, relationships and inheritance.

2011-07-11 Thread James Studdart
Hi Michael, thanks for your reply. I did get it working with the @property/hybrid_property, but it turns out what I really needed was a custom collection class. At least, that seems to be working in a cleaner fashion. I'm still fumbling around in the dark a little bit, so we'll see how it

Re: [sqlalchemy] hybrid, relationships and inheritance.

2011-07-08 Thread Michael Bayer
On Jul 7, 2011, at 3:29 PM, James Studdart wrote: Hi all, I've got a question regarding hybrid properties and how to use them with single table inheritance. I've got a class hierarchy like this (in semi-pseudo code): class MyBase(object): # This has the tablename declared attr, id

[sqlalchemy] hybrid, relationships and inheritance.

2011-07-07 Thread James Studdart
Hi all, I've got a question regarding hybrid properties and how to use them with single table inheritance. I've got a class hierarchy like this (in semi-pseudo code): class MyBase(object): # This has the tablename declared attr, id as primary key, generic table args etc. class