Package: zope-psycopgda2 Version: 2.0.6-3 Severity: grave Justification: renders package unusable
If you use the ZMI to create a SQL Psycopg Connection object and try to use it (by opening a connection) you'll get an error and a message saying: > An error was encountered while publishing this resource. > > Error Type: OperationalError > Error Value: can't set encoding to Clearly the add interface generated for the ZMI is not presenting the 'encoding' property to be set, and since the Connection object in the source needs that property and the default is an empty string (as we can see in the excerpt below) the object raise an error. <excerpt type="code/python" from="psycopg2-2.0.6/ZPsycopgDA/DA.py"> class Connection(Shared.DC.ZRDB.Connection.Connection): """ZPsycopg Connection.""" _isAnSQLConnection = 1 id = 'Psycopg2_database_connection' database_type = 'Psycopg2' meta_type = title = 'Z Psycopg 2 Database Connection' icon = 'misc_/conn' def __init__(self, id, title, connection_string, zdatetime, check=None, tilevel=2, encoding=''): self.zdatetime = zdatetime self.id = str(id) self.edit(title, connection_string, zdatetime, check=check, tilevel=tilevel, encoding=encoding) </excerpt> -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.22-3-k7 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages zope-psycopgda2 depends on: ii python-psycopg2 2.0.6-3 Python module for PostgreSQL ii zope-common 0.5.41 common settings and scripts for Zo ii zope2.10 2.10.5-3 Open Source Web Application Server zope-psycopgda2 recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]