On Thu, May 03, 2007 at 09:14:00AM -0700, Dobromir Montauk wrote: > I have two packages which are colliding. I'm doing: > > from foo import Objects as JuryObjects > from bar import Objects as OptimusObjects > > Now, both "JuryObjects" and "OptimusObjects" have a class "Language" (they > each have their own database).
SQLObject supports the idea of "registry". Default registry is None, but you can assign any name. I recommend to set a registry for one or both of these modules: class Language(SQLObject): class sqlmeta: registry = "Foo" You have to set the same registry for all tables you want to use together (registry is used to resolve ForeignKey, MultipleJoin and RelatedJoin.) Oleg. -- Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss