Dear SQLAlchemy users,

I wondered what would you use in case of 
Let's say I have a "Content". "News" and "Event" are a "Content".
"PlatformNews" is a "News" and "ScienceNews" is a "News" too.

I use joined table inheritance, so I have a column "content_type" (the
polymorphic_on) in my "Content" which can be "news" or "event" at the
moment. It works well.

I wondered what's the right way to do for the "PlatformNews" and the
"ScienceNews" cases. Should I add a "content_type" column in the "News"
table ? or just another value for the "Content" content_type column ?

Here are my mappers: http://pastebin.com/f337651b

Thanks,
Julien



-- 
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles (ULB)
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
Mail: [EMAIL PROTECTED]
@biobel: http://biobel.biodiversity.be/person/show/471
Tel : 02 650 57 52


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to