commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

r5651 - trunk/gnue-common/src/datasources/drivers/DBSIG2


From: reinhard
Subject: r5651 - trunk/gnue-common/src/datasources/drivers/DBSIG2
Date: Tue, 6 Apr 2004 10:12:15 -0500 (CDT)

Author: reinhard
Date: 2004-04-06 10:12:14 -0500 (Tue, 06 Apr 2004)
New Revision: 5651

Modified:
   trunk/gnue-common/src/datasources/drivers/DBSIG2/Connection.py
Log:
Fixed boolean parameter quoting - gnue-forms uses IntType values for
checkboxes, not BooleanType.


Modified: trunk/gnue-common/src/datasources/drivers/DBSIG2/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/DBSIG2/Connection.py      
2004-04-06 14:32:05 UTC (rev 5650)
+++ trunk/gnue-common/src/datasources/drivers/DBSIG2/Connection.py      
2004-04-06 15:12:14 UTC (rev 5651)
@@ -121,8 +121,8 @@
       # Unicode: return encoded string
       return value.encode (self._encoding)
 
-    elif sys.hexversion < 0x02030000 and isinstance (value, IntType):
-      # For Python < 2.3, IntType is used for booleans. Some datbases (e.g.
+    elif isinstance (value, IntType):
+      # Sometimes (sigh), IntType is used for booleans. Some datbases (e.g.
       # postgres) want boolean 0 and 1 values as strings.
       # Can be removed as soon as we require Python 2.3
       return str (value)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]