Isn't it possible to use a second class which derivate from the initial one.
In this class you may specify the connection and the table name?
MichaelG a écrit :
Oleg,

Being dense, and having fought with this a while now, can you provide a 
very brief example of "pass a connection object to an every method" in 
this case Ray presents of two databases?  I am sure there is a very 
clean pythonic way to handle this, and I am just missing it.

- Michael


Oleg Broytmann wrote:
  
On Thu, Aug 24, 2006 at 09:30:42AM +1000, Ray Smith wrote:
    
Is it possible to connect to 2 databases each of which have a common
table name??
      
   It is. I have a program that copies a database from Postgres to SQLite -
both backends have identical structures.
   Just pass a connection object to an every method.

Oleg.
    


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss