[Zope-dev] Multiple Database Connections Same Zsql method

senkr senkr@attbi.com
Fri, 8 Mar 2002 16:10:57 -0800


This is a multi-part message in MIME format.

------=_NextPart_000_000A_01C1C6BB.D508C3F0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Is it possible to iterate though multiple databases with the same zsql =
method?  Have multple identical databases with different data.  Want to =
maintain only one method.

Can i do this in DTML or do I have to use pythonscripts? =20

I guess what I want to do is to have the query in one folder, call it =
from another folder and pass the database connection info to it.

Not sure how well this would work with multiple users though.......

Any advice is appreciated. =20

------=_NextPart_000_000A_01C1C6BB.D508C3F0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<DIV><SPAN class=3D871540300-09032002><FONT face=3DArial size=3D2>Is it =
possible to=20
iterate though multiple databases with the same zsql method?&nbsp; Have =
multple=20
identical databases with different data.&nbsp; Want to maintain only one =

method.</FONT></SPAN></DIV>
<DIV><SPAN class=3D871540300-09032002></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D871540300-09032002>Can i do this in DTML or do I have =
to use=20
pythonscripts?&nbsp; </SPAN></DIV>
<DIV><SPAN class=3D871540300-09032002></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D871540300-09032002>I guess what I want to do is to =
have the=20
query in one folder, call it from another folder and pass the database=20
connection info to it.</SPAN></DIV>
<DIV><SPAN class=3D871540300-09032002></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D871540300-09032002>Not sure how well this would work =
with=20
multiple users though.......</SPAN></DIV>
<DIV><SPAN class=3D871540300-09032002></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D871540300-09032002>Any advice is appreciated.&nbsp;=20
</SPAN></DIV></FONT></DIV></BODY></HTML>

------=_NextPart_000_000A_01C1C6BB.D508C3F0--