sorry if there was something in the documentation i should have understood,
but i'm having this problem
the code:
class Pics(SQLObject):
itemid = IntCol()
picdata = BLOBCol()
thumbnail = ForeignKey("Thumbs", cascade='null')
try:
Pics.createTable()
print "Created table Pics"
except dberrors.OperationalError: pass
class Thumbs(SQLObject):
itemid = IntCol()
pic = ForeignKey("Pics", cascade=True)
picdata = BLOBCol()
try:
Pics.createTable()
print "Created table Pics"
except dberrors.OperationalError: pass
the error:
KeyError: 'No class Thumbs found in the registry [default] (these classes
exist:
Log, Pics, RegisterSessions, SQLObject, Sessions, Users)'
that list is a list of all the tables created before i got to that point, so
i assume the error is that Thumbs must be registered before I can make a
foreign key to it, but then if I put Thumbs before Pics, Pics wouldn't be
registered yet when I try to make a foreign key to that. how do i solve
this? sorry if the answer is supposed to be obvious =p
------------------------------------------------------------------------------
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