Thank you. I was hoping it was something like that as I couldn't see anything else that would make sense.
On Jul 8, 6:52 am, Michael Bayer <mike...@zzzcomputing.com> wrote: > On Jul 7, 2010, at 10:52 PM, Craig Macomber wrote: > > > > > > > ''' > > For some reason, when I define my class seems to impact sqlalchemy > > Below is code where if the "class Formation(Library): pass" line is > > moved down, > > it works, but as is, I get the error at the end of this file, raised > > when the last line runs > > This seems very odd (and bug like) to me, and I'm searching for an > > explanation, as well as a way to avoid the problem > > other than carefully shuffling the order of my code around (which can > > be impossible in a larger project) > > I'm very new to sqlalchemy, so its likely I'm missing something > > conceptually; > > but I don't know where to look for docs about such an issue. > > This is the minimized version of my project messily crammed into a > > single file. > > Any insight would be greatly appreciated. > > you have to map all classes that you intend to use with the Session. The bug > here is that you've managed to sneak past the usual assertions that classes > passed in are mapped. Ticket #1846 has been added. -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.