[sqlalchemy] Re: Circular Dependancy Hell

2009-09-28 Thread Ryan Michael
I cannot thank you enough - this has been driving me crazy. Your solution works great. I also worked out that you can get create_all() to work by adding use_alter=True to the foreignkey definition thumbnail_id=Column('thumbnail_id',Integer, ForeignKey('image.id', use_alter=True, name='thumbnail

[sqlalchemy] Circular Dependancy Hell

2009-09-25 Thread Ryan Michael
I'm trying to do something that seems (to me at least) to be very simple: I have two classes, 'Project' and 'Image'. I want to associate a set of 'Image's with a project, like a slide show or whatever. I also want to use *one* of those images as a thumbnail for the project. Here's my relevant