Column('content_id', Integer, ForeignKey('contents.id'), primary_key=True, nullable=False)) 'primary_key=True' when you define one already, will work?
On Apr 2, 6:44 pm, Julien Cigar <[EMAIL PROTECTED]> wrote: > Hello, > > I'm playing a bit with Multiple Table Inheritance (the Non-polymorphic > way) and I got a problem which I have copy/paste > onhttp://rafb.net/p/HAhx8p22.html > > Here is the basic idea of what I want to do (it's a kind of CMS): > > - "Content" is the base class for all contents (Pages, News, Events, > Folder, ...) > - "Folder" is a "Content" which can contain one or more "Content" > (Node-like structure) > > I suspect that the problem is that I don't have a sequence for my > primary keys in my subclasses .. ? > > Thanks, > Julien > > -- > Julien Cigar > Belgian Biodiversity Platformhttp://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 > office: [EMAIL PROTECTED] > home: [EMAIL PROTECTED] > biobel reference:http://biobel.biodiversity.be/biobel/person/show/471 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---