Not to speak for Jeff, but I wonder if an SQLObject class can natively
refer to another class in a separate registry? For example:
class Foo(SQLObject):
class sqlmeta:
registry='foo'
name = StringCol(length=50)
class Bar(SQLObject):
foo_obj = ForeignKey('foo.Foo')
While this appears to work, as soon as you try to reference
Bar.foo_obj, an exception is thrown.
Traceback (most recent call last):
File "<console>", line 1, in ?
File "<string>", line 1, in <lambda>
AttributeError: 'Bar' object has no attribute '_SO_class_foo'
I imagine subcassing is a pain too, because your subclass is
automatically in the parent's registry, and can't refer to your
applications registry.
If you can't refer to another registry, I guess I don't really see the
point of it (I was unaware this was how the registry worked, too).
Sure, it prevents namespace clashes, but interoperability between
classes would seem to be pretty important. I'm hoping this is just a
lack of understanding on my part.
Perhaps this is a question that should be asked on the SQLObject list?