On Tue, May 12, 2009 at 03:08:16AM -0400, inhahe wrote: > class Pics(SQLObject): > itemid = IntCol() > picdata = BLOBCol() > thumbnail = ForeignKey("Thumbs", cascade='null') > try: > Pics.createTable() > print "Created table Pics" > except dberrors.OperationalError: pass
Why do you need these try/except? > class Thumbs(SQLObject): > itemid = IntCol() > pic = ForeignKey("Pics", cascade=True) > picdata = BLOBCol() > try: > Pics.createTable() > print "Created table Pics" > except dberrors.OperationalError: pass > > KeyError: 'No class Thumbs found in the registry http://sqlobject.org/FAQ.html#mutually-referencing-tables Oleg. -- Oleg Broytmann http://phd.pp.ru/ p...@phd.pp.ru Programmers don't die, they just GOSUB without RETURN. ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss