[Fwd: Re: [Zope-DB] Multiple databases connection]

m.banaouas banaouas.medialog at wanadoo.fr
Thu Jun 8 03:57:11 EDT 2006


May be "dynamically database connection" means that we use the same "Z 
SQL Method" with different database connections (in the same Zope 
Instance, of course). So we can change "dynamically" from one database 
to another (schema-equal).

In other words, is it possible to define "database connection" property 
of a "Z SQL Method" like we do for parameters ?
thanks.



On mer, 2006-06-07 at 18:49 -0700, Infor Gates wrote:
 > Is there anyway where we can have a dynamically database connection to
 > each branch database with only one zope application (instead of
 > multiples of the same application).
 >
 > We are using Zope 2.8.6, Postgresql 8.0.4 with Psycopg-1.1.21
 > connector.

I don't understand what you mean by "dynamically database connection",
but Zope supports connections to multiple databases by simply creating
muiltiple connections objects ("Z Psycopg Connection" objects in your
case).

federico





More information about the Zope-DB mailing list