[Zope] Change db connect string in python or dtml
Wilkinson Charlie E
Charlie.E.Wilkinson@irs.gov
Wed, 2 Aug 2000 15:18:10 -0400
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01BFFCB6.678DFB0E
Content-Type: text/plain;
charset="iso-8859-1"
Have you tried: create a new instance of a database connection alongside the
old one, then point your SQL methods at the new connection. When you have
them all switched over, delete the old connection.
-cw-
> -----Original Message-----
> From: Magnus Heino [magnus.heino@rivermen.se]
> Sent: Wednesday, August 02, 2000 5:50 AM
> To: zope@zope.org
> Subject: [Zope] Change db connect string in python or dtml
>
>
>
> Hi.
>
> I have an instance of a 'Z MySQL Database Connection' called mysql.
>
> How can I change the 'Database Connection String' and then then try to
> connect, either in dtml or python?
>
> --
>
> /Magnus Heino
------_=_NextPart_001_01BFFCB6.678DFB0E
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>RE: [Zope] Change db connect string in python or dtml</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=3D2>Have you tried: create a new instance of a database =
connection alongside the old one, then point your SQL methods at the =
new connection. When you have them all switched over, delete the =
old connection.</FONT></P>
<P><FONT SIZE=3D2>-cw-</FONT>
</P>
<P><FONT SIZE=3D2>> -----Original Message-----</FONT>
<BR><FONT SIZE=3D2>> From: Magnus Heino =
[magnus.heino@rivermen.se]</FONT>
<BR><FONT SIZE=3D2>> Sent: Wednesday, August 02, 2000 5:50 AM</FONT>
<BR><FONT SIZE=3D2>> To: zope@zope.org</FONT>
<BR><FONT SIZE=3D2>> Subject: [Zope] Change db connect string in =
python or dtml</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT =
SIZE=3D2>>  =
;  =
;  =
;  =
;  =
;  =
; </FONT>
<BR><FONT SIZE=3D2>> =
Hi. &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; </FONT>
<BR><FONT =
SIZE=3D2>>  =
;  =
;  =
;  =
;  =
;  =
; </FONT>
<BR><FONT SIZE=3D2>> I have an instance of a 'Z MySQL Database =
Connection' called mysql. </FONT>
<BR><FONT =
SIZE=3D2>>  =
;  =
;  =
;  =
;  =
;  =
; </FONT>
<BR><FONT SIZE=3D2>> How can I change the 'Database Connection =
String' and then then try to</FONT>
<BR><FONT SIZE=3D2>> connect, either in dtml or =
python?  =
;  =
;  =
; </FONT>
<BR><FONT =
SIZE=3D2>>  =
;  =
;  =
;  =
;  =
;  =
; </FONT>
<BR><FONT SIZE=3D2>> =
-- &nbs=
p; &nbs=
p; &nbs=
p; &nbs=
p; &nbs=
p; </FONT>
<BR><FONT =
SIZE=3D2>>  =
;  =
;  =
;  =
;  =
;  =
; </FONT>
<BR><FONT SIZE=3D2>> /Magnus =
Heino &=
nbsp; &=
nbsp; &=
nbsp; &=
nbsp; </FONT>
</P>
</BODY>
</HTML>
------_=_NextPart_001_01BFFCB6.678DFB0E--