On Sun, Dec 05, 2004 at 01:42:39PM -0800, Scott Sanders wrote:
> Are you saying I should have a registry outside of the normal registry
> process?
Yes. Something like this:
class MyRegistry(ClassRegistry):
def getClass(self, name):
return SomethingAppropriate
class MyTable(SQLObject):
_registry = MyRegistry()
columns = get_the_list_of_columns_from_the_db("my_table")
joins = get_the_list_of_joins_from_the_db("my_table")
for column in columns:
MyTable.addColumn(column)
for join in joins:
MyTable.addJoin(join)
Do you need anything besides that?
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ ph...@ph...
Programmers don't die, they just GOSUB without RETURN.
|