[Zope] Changing DA

Andreas Kostyrka andreas@kostyrka.priv.at
14 Aug 2002 12:33:50 +0200


Am Die, 2002-08-13 um 19.32 schrieb Jim Penny:
> Suppose, I have many ZSQL methods using the foo DA, and want to switch,
> or at least test the bar DA.
> 
> How do I programatically make the switch?
> 
> I could swear that this has come up before, but I cannot find it.
How about creating a new "bar" connection object with the same id? 
> 
> On a related question -- how does one determine the set of available
> connection ids?
look at
lib/python/Products/ZSQLMethods/SQL.py:SQLConnectionIDs

Andreas