On Tue, Feb 05, 2008 at 08:55:35PM +0100, Petr Jake?? wrote: > Hi, > I have not clue how to realize simultaneous conection for two different > databases in one script. > > For example: > > 1) > db_filename = '/opt/firebird/examples/empbuild/automat.fdb' > connection_string = 'firebird://127.0.0.1:3050/' + db_filename > connection = connectionForURI(connection_string) > sqlhub.processConnection = connection > > 2) > connection = connectionForURI('sqlite:///work/mincovnik.db') > sqlhub.processConnection = connection
You cannot do this with sqlhub. You have to pass the second connection as the connection parameter to all SQLObject methods: connection2 = connectionForURI('sqlite:///work/mincovnik.db') ATable.select(clause, connection=connection2) 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss