Your message dated Mon, 16 Jan 2012 15:07:47 +0000
with message-id <e1rmo9z-0006hl...@franck.debian.org>
and subject line Bug#633843: fixed in sqlobject 0.12.4-2.1
has caused the Debian Bug report #633843,
regarding python-sqlobject: autocommit issue with psycopg2
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
633843: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=633843
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: python-sqlobject
Version: 0.12.4-2
Severity: grave
Tags: patch
Justification: renders package unusable
Recently psycopg2 has added a new attribute "autocommit" (bool).
SQLObject checks for a function called autocommit too.
In case of activation of autocommit in your code, SQLObject raises an exception
trying to run autocommit function.
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages python-sqlobject depends on:
ii python 2.6.7-1 interactive high-level object-orie
ii python-formencode 1.2.4-2 validation and form generation Pyt
ii python-pkg-resources 0.6.16-1 Package Discovery and Resource Acc
ii python-support 1.0.14 automated rebuilding support for P
python-sqlobject recommends no packages.
Versions of packages python-sqlobject suggests:
pn python-kinterbasdb <none> (no description available)
pn python-maxdb <none> (no description available)
ii python-mysqldb 1.2.2-10+b3 A Python interface to MySQL
ii python-psycopg2 2.4.2-1 Python module for PostgreSQL
pn python-sqlite <none> (no description available)
-- no debconf information
--- pgconnection.py.bak 2011-07-14 11:36:38.551584096 +0200
+++ pgconnection.py 2011-07-14 11:40:18.327099899 +0200
@@ -117,7 +117,10 @@
def _setAutoCommit(self, conn, auto):
# psycopg2 does not have an autocommit method.
if hasattr(conn, 'autocommit'):
- conn.autocommit(auto)
+ try:
+ conn.autocommit(auto)
+ except TypeError:
+ conn.autocommit = auto
def makeConnection(self):
try:
@@ -130,7 +133,10 @@
if self.autoCommit:
# psycopg2 does not have an autocommit method.
if hasattr(conn, 'autocommit'):
- conn.autocommit(1)
+ try:
+ conn.autocommit(1)
+ except TypeError:
+ conn.autocommit = 1
c = conn.cursor()
if self.schema:
c.execute("SET search_path TO " + self.schema)
--- End Message ---
--- Begin Message ---
Source: sqlobject
Source-Version: 0.12.4-2.1
We believe that the bug you reported is fixed in the latest version of
sqlobject, which is due to be installed in the Debian FTP archive:
python-sqlobject_0.12.4-2.1_all.deb
to main/s/sqlobject/python-sqlobject_0.12.4-2.1_all.deb
sqlobject_0.12.4-2.1.debian.tar.gz
to main/s/sqlobject/sqlobject_0.12.4-2.1.debian.tar.gz
sqlobject_0.12.4-2.1.dsc
to main/s/sqlobject/sqlobject_0.12.4-2.1.dsc
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 633...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
gregor herrmann <gre...@debian.org> (supplier of updated sqlobject package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Sat, 14 Jan 2012 15:11:56 +0100
Source: sqlobject
Binary: python-sqlobject
Architecture: source all
Version: 0.12.4-2.1
Distribution: unstable
Urgency: low
Maintainer: Debian Python Modules Team
<python-modules-team@lists.alioth.debian.org>
Changed-By: gregor herrmann <gre...@debian.org>
Description:
python-sqlobject - object relational manager providing an object interface to
your d
Closes: 633843
Changes:
sqlobject (0.12.4-2.1) unstable; urgency=low
.
* Non-maintainer upload.
* Fix "autocommit issue with psycopg2":
new patch psycopg2-autocommit from upstream.
(Closes: #633843)
Checksums-Sha1:
1ffcb9073754298420c965f75aa529083446e0c9 2062 sqlobject_0.12.4-2.1.dsc
230e29f7c361e955c1c9a4ee0ea221d7e72acd5a 6195
sqlobject_0.12.4-2.1.debian.tar.gz
3f4f6b64a88bc80f25c989df1a3772a1b3c4c885 199456
python-sqlobject_0.12.4-2.1_all.deb
Checksums-Sha256:
d9bf1e214998b09f2e2f8d3240c0b91941519aa61a1e4753e38439da28a54c7b 2062
sqlobject_0.12.4-2.1.dsc
4469ae961c11625ecc8ad924380f4ed220bdccb1d35be4263294f43e6866e843 6195
sqlobject_0.12.4-2.1.debian.tar.gz
3a0f2278d72c001bb48bfb123a1196bce5664e5f62dbd66d21bf5140a5c0c733 199456
python-sqlobject_0.12.4-2.1_all.deb
Files:
6e3dc54ebe1fd60db684f5f56621923e 2062 python optional sqlobject_0.12.4-2.1.dsc
4f15e305df7559b0c802f71012949c72 6195 python optional
sqlobject_0.12.4-2.1.debian.tar.gz
bf2073c31d81c4956d3635a8e15f572e 199456 python optional
python-sqlobject_0.12.4-2.1_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iQIcBAEBCAAGBQJPEY2OAAoJELs6aAGGSaoGTwoP/00BVTbbmI0DdBG526oNeBcs
cUgKRZaArezOKufuTli8mOZ4yL08iRegxlOVUABsFaxKaE+HnRu/UHES6+XaKmD2
MDTo0oExPIZW4C4iT2IzcFKVYtf9bgQclpnFizxdG8TT52ApbGY6F63gqeLGQD6s
0YU1GvxJSCfntH0Svzml7D8rS4Oy3jeAZlmGD2CRJEeG0kkQyS3cRGPHYReWmspa
d/B53asKh+oRBdoZiPCO/snAHutOR2clQ12WyQ1ZBJJJt58mc/fRE3HhH+Jsbx1d
sUhupvUOYMnOZ/J1zN0E0EgAaqc5+GkGmIZSb7XshGJQzxtN6DJRZa6LyjUseb0T
ROwQEea3v1SSN2clVt0NKAOWNPSjGKvO/MQ7Bd1CZ7z0Xq1vghal1vHcrzWHdWW+
y1zkuLQD80tyGdCZk25RHUcaOECSyWXXi5PFvNNBbcRQkJPc/75dHcVp9ZnyG7N+
ltTgKhlANILlTnOEc+FFaP06dlZLif6txOlprXJ/psiRw7KVMQfnr1N54LBdN0ND
KGDqtSm1JEWtnzua26jxm/TqglbKKmjSkUK51/peGJ+9+dNEAARcSU2++9bb3wvb
t+GXGy+CZqAZri5q9Uoe6jEVDnOlOAVq1I8BO7XCr4nW4WOZvPE09bKNPswFgeuB
N+6NK8b3PgrzfJijyq5i
=PFcs
-----END PGP SIGNATURE-----
--- End Message ---
_______________________________________________
Python-modules-team mailing list
Python-modules-team@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team