[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r5027 - in trunk/gnue-common/src/datasources/drivers: Base DBSIG2
From: |
jcater |
Subject: |
r5027 - in trunk/gnue-common/src/datasources/drivers: Base DBSIG2 |
Date: |
Tue, 6 Jan 2004 02:46:09 -0600 (CST) |
Author: jcater
Date: 2004-01-06 02:46:07 -0600 (Tue, 06 Jan 2004)
New Revision: 5027
Modified:
trunk/gnue-common/src/datasources/drivers/Base/Connection.py
trunk/gnue-common/src/datasources/drivers/DBSIG2/DataObject.py
Log:
make encoding work with non-GBaseApp.py applications
Modified: trunk/gnue-common/src/datasources/drivers/Base/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/Base/Connection.py
2004-01-06 06:56:58 UTC (rev 5026)
+++ trunk/gnue-common/src/datasources/drivers/Base/Connection.py
2004-01-06 08:46:07 UTC (rev 5027)
@@ -50,7 +50,7 @@
except KeyError:
try:
self._encoding = gConfig('textEncoding')
- except KeyError:
+ except:
# TODO: Is this a safe default?
self._encoding = 'iso8859-1'
@@ -68,4 +68,4 @@
pass
def connect(self, connectData):
- pass
\ No newline at end of file
+ pass
Modified: trunk/gnue-common/src/datasources/drivers/DBSIG2/DataObject.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/DBSIG2/DataObject.py
2004-01-06 06:56:58 UTC (rev 5026)
+++ trunk/gnue-common/src/datasources/drivers/DBSIG2/DataObject.py
2004-01-06 08:46:07 UTC (rev 5027)
@@ -146,7 +146,7 @@
"%s'" % self._escapeSingleQuote)
# TODO: make this test faster, possibly move type check to GTypecast
- elif hasattr(types,'BooleanType') and typestype(value) ==
types.BooleanType:
+ elif hasattr(types,'BooleanType') and type(value) == types.BooleanType:
if value:
return 'TRUE'
else:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r5027 - in trunk/gnue-common/src/datasources/drivers: Base DBSIG2,
jcater <=