From owner-freebsd-python@FreeBSD.ORG Mon May 31 17:14:12 2004 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F73516A4CE; Mon, 31 May 2004 17:14:12 -0700 (PDT) Received: from ganymede.hub.org (u46n208.hfx.eastlink.ca [24.222.46.208]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0A5743D41; Mon, 31 May 2004 17:14:11 -0700 (PDT) (envelope-from scrappy@hub.org) Received: by ganymede.hub.org (Postfix, from userid 1000) id C48685DC90; Mon, 31 May 2004 21:14:12 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by ganymede.hub.org (Postfix) with ESMTP id BB5CA5CA36; Mon, 31 May 2004 21:14:12 -0300 (ADT) Date: Mon, 31 May 2004 21:14:12 -0300 (ADT) From: "Marc G. Fournier" To: Hye-Shik Chang In-Reply-To: <20040531223231.GA17254@i18n.org> Message-ID: <20040531211358.X81588@ganymede.hub.org> References: <20040531190956.G81588@ganymede.hub.org> <20040531223231.GA17254@i18n.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: freebsd-ports@freebsd.org cc: freebsd-python@freebsd.org Subject: Re: MySQL db connect after upgrade to Zope 2.7.0 ... X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jun 2004 00:14:12 -0000 that did it ... something that maybe should be added to the port itself? On Tue, 1 Jun 2004, Hye-Shik Chang wrote: > On Mon, May 31, 2004 at 07:10:54PM -0300, Marc G. Fournier wrote: >> >> Can't seem to find any *answers* on Google, but a few ppl asking about it >> ... >> >> Just upgraded, and am getting: >> >> 2004-05-31T22:03:54 ERROR(200) Shared.DC.ZRDB.Connection Error connecting >> to relational database. >> Traceback (most recent call last): >> File "/usr/local/www/Zope/lib/python/Shared/DC/ZRDB/Connection.py", line >> 69, in __setstate__ >> try: self.connect(self.connection_string) >> File >> "/home/ports/usr/ports/www/zope-zmysqlda/work/lib/python/Products/ZMySQLDA/DA.py", line 126, in connect >> File >> "/home/ports/usr/ports/www/zope-zmysqlda/work/lib/python/Products/ZMySQLDA/db.py", line 183, in __init__ >> AttributeError: server_capabilities >> >> How do I fix? :( Or even debug? >> >> Thanks ... >> > > According to: > http://www.google.com/search?q=cache:Oti-fgNOtvoJ:www.dzug.org/mailinglisten/zope/archive/2004/2004-04/1082980237427+AttributeError:+server_capabilities&hl=ko > http://www.google.com/search?q=cache:Eoq-GsF17nUJ:mooya.ath.cx/CubeDeZope/1068486456/index_html+AttributeError:+server_capabilities&hl=ko > > 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=connection > self.kwargs = kwargs = self._parse_connection_string(connection) > self.db=apply(self.Database_Connection, (), kwargs) > - self.transactions = self.db.server_capabilities & CLIENT.TRANSACTIONS > + self.transactions = 1 > if self._try_transactions == '-': > self.transactions = 0 > elif not self.transactions and self._try_transactions == '+': > > Hye-Shik > ---- Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email: scrappy@hub.org Yahoo!: yscrappy ICQ: 7615664