Dear list<br><br>Thank you for all your replies and appreciate your comments given.<br><br>CY<br><br><b><i>Andrew Veitch &lt;andrew@logicalware.com&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> If you add a ZSQL Method and then go to the 'Advanced' tab you can  <br>specify a 'Connection Hook'. This should be the name of a Python  <br>Script or some other method which will return the name of the  <br>database connection to use allowing you to dynamically change the DB  <br>connection.<br><br>A<br><br>On 9 Jun 2006, at 06:19, Infor Gates wrote:<br><br>&gt; My apologies if my query is unclear.<br>&gt; M.Banaouas got it right. Let try to explain it another way:<br>&gt; 1. We have a standard Zope application which is replicated in ZMI.<br>&gt; 2. the difference in each Zope application is DBconnection.<br>&gt; 3. Each DBconnection is connection to each Branch database.<br>&gt;<br>&gt; In other
 words, if I have 10 branches, I will replicate 10 times of  <br>&gt; the<br>&gt; same Zope application which is not a wise thing to do. As such,<br>&gt; I exploring to find a way if there is "dynamically" way to<br>&gt; change the db connection to the intended (branch) database.<br>&gt; Thus eliminating the Zope application replication.<br>&gt;<br>&gt; Thank you.<br>&gt;<br>&gt; CY<br>&gt;<br>&gt; -----<br>&gt; &gt; May be "dynamically database connection" means that we use the same<br>&gt; "Z<br>&gt; &gt; SQL Method" with different database connections (in the same Zope<br>&gt; &gt; Instance, of course). So we can change "dynamically" from one<br>&gt; database<br>&gt; &gt; to another (schema-equal).<br>&gt; &gt;<br>&gt; &gt; In other words, is it possible to define "database connection"<br>&gt; property<br>&gt; &gt; of a "Z SQL Method" like we do for parameters ?<br>&gt; __________________________________________________<br>&gt; Do You Yahoo!?<br>&gt; Tired of spam?
 Yahoo! Mail has the best spam protection around<br>&gt; http://mail.yahoo.com<br>&gt;<br>&gt; _______________________________________________<br>&gt; Zope-DB mailing list<br>&gt; Zope-DB@zope.org<br>&gt; http://mail.zope.org/mailman/listinfo/zope-db<br><br><br></blockquote><br><p>&#32;__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com