Re: [Zope] How to specify to z sql methods, the connection object to use at runtime...time...

2000-12-06 Thread Frederic Quin
Thanks to yall... Finally, I thought like you Randy... I created as many folders as many servers I have. Each folder contains a connection object called "con" every where. Each folder contains also Z SQL Methods. Some of them contains the same Z SQL Methods. So, I just have to specify the server

Re: [Zope] How to specify to z sql methods, the connection object to use at runtime...time...

2000-12-05 Thread Tino Wildenhain
Hi Frederic, Frederic Quin schrieb: Hi all, I have the same querry to execute on different servers. I don't want to create as many z sql methods as servers I have. I would like to specify to my z sql method, the connection object to use at run time. Do I have to patch the files of z sql

Re: [Zope] How to specify to z sql methods, the connection object to use at runtime...time...

2000-12-05 Thread Randall Kern
I haven't actually tried this, but it seems it should work: / /db1- folder connection- a DB connection object to db 1 /db2- folder connection- a DB connection object to db 2 query- a ZSqlMethod, set to use the connection 'connection'. Note, you

[Zope] How to specify to z sql methods, the connection object to use at runtime...time...

2000-12-04 Thread Frederic Quin
Hi all, I have the same querry to execute on different servers. I don't want to create as many z sql methods as servers I have. I would like to specify to my z sql method, the connection object to use at run time. Do I have to patch the files of z sql methods ? Can I use directly the connection