Date: Tue, 1 Jun 2004 07:32:31 +0900 From: Hye-Shik Chang <perky@i18n.org> To: "Marc G. Fournier" <scrappy@hub.org> Cc: freebsd-python@freebsd.org Subject: Re: MySQL db connect after upgrade to Zope 2.7.0 ... Message-ID: <20040531223231.GA17254@i18n.org> In-Reply-To: <20040531190956.G81588@ganymede.hub.org> References: <20040531190956.G81588@ganymede.hub.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--1yeeQ81UyVL57Vl7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 31, 2004 at 07:10:54PM -0300, Marc G. Fournier wrote: >=20 > Can't seem to find any *answers* on Google, but a few ppl asking about it= =20 > ... >=20 > Just upgraded, and am getting: >=20 > 2004-05-31T22:03:54 ERROR(200) Shared.DC.ZRDB.Connection Error connecting= =20 > to relational database. > Traceback (most recent call last): > File "/usr/local/www/Zope/lib/python/Shared/DC/ZRDB/Connection.py", lin= e=20 > 69, in __setstate__ > try: self.connect(self.connection_string) > File=20 > "/home/ports/usr/ports/www/zope-zmysqlda/work/lib/python/Products/ZMySQ= LDA/DA.py", line 126, in connect > File=20 > "/home/ports/usr/ports/www/zope-zmysqlda/work/lib/python/Products/ZMySQ= LDA/db.py", line 183, in __init__ > AttributeError: server_capabilities >=20 > How do I fix? :( Or even debug? >=20 > Thanks ... >=20 According to: http://www.google.com/search?q=3Dcache:Oti-fgNOtvoJ:www.dzug.org/mailinglis= ten/zope/archive/2004/2004-04/1082980237427+AttributeError:+server_capabili= ties&hl=3Dko http://www.google.com/search?q=3Dcache:Eoq-GsF17nUJ:mooya.ath.cx/CubeDeZope= /1068486456/index_html+AttributeError:+server_capabilities&hl=3Dko This may be working fix. --- ZMySQLDA/db.py.orig Tue Jun 1 07:29:02 2004 +++ ZMySQLDA/db.py Tue Jun 1 07:29:32 2004 @@ -180,7 +180,7 @@ self.connection=3Dconnection self.kwargs =3D kwargs =3D self._parse_connection_string(connectio= n) self.db=3Dapply(self.Database_Connection, (), kwargs) - self.transactions =3D self.db.server_capabilities & CLIENT.TRANSACTIONS + self.transactions =3D 1 if self._try_transactions =3D=3D '-': self.transactions =3D 0 elif not self.transactions and self._try_transactions =3D=3D '+': Hye-Shik --1yeeQ81UyVL57Vl7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAu7J+DWUsWc/bS6QRAmQjAKDENGzjNufFQz4AVFF38QDuVfhp4QCfb7vp nyuW/MqbbwmbKWttQYvG2dg= =bWPc -----END PGP SIGNATURE----- --1yeeQ81UyVL57Vl7--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040531223231.GA17254>