* ZPsycopgDA/DA.py (Connection.__init__): Default the encoding to

UTF-8, fixing bug #190.
This commit is contained in:
James Henstridge 2008-01-16 18:56:13 +00:00
parent bc663111b6
commit 6d9b6a977c
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-01-17 James Henstridge <james@jamesh.id.au>
* ZPsycopgDA/DA.py (Connection.__init__): Default the encoding to
UTF-8, fixing bug #190.
2008-01-16 James Henstridge <james@jamesh.id.au> 2008-01-16 James Henstridge <james@jamesh.id.au>
* tests/test_transaction.py (DeadlockSerializationTestCase): port * tests/test_transaction.py (DeadlockSerializationTestCase): port

View File

@ -82,7 +82,7 @@ class Connection(Shared.DC.ZRDB.Connection.Connection):
icon = 'misc_/conn' icon = 'misc_/conn'
def __init__(self, id, title, connection_string, def __init__(self, id, title, connection_string,
zdatetime, check=None, tilevel=2, encoding=''): zdatetime, check=None, tilevel=2, encoding='UTF-8'):
self.zdatetime = zdatetime self.zdatetime = zdatetime
self.id = str(id) self.id = str(id)
self.edit(title, connection_string, zdatetime, self.edit(title, connection_string, zdatetime,
@ -94,7 +94,7 @@ class Connection(Shared.DC.ZRDB.Connection.Connection):
## connection parameters editing ## ## connection parameters editing ##
def edit(self, title, connection_string, def edit(self, title, connection_string,
zdatetime, check=None, tilevel=2, encoding=''): zdatetime, check=None, tilevel=2, encoding='UTF-8'):
self.title = title self.title = title
self.connection_string = connection_string self.connection_string = connection_string
self.zdatetime = zdatetime self.zdatetime = zdatetime