Anonymous avatar Anonymous committed 49de194

Removed some code per issue 24.

Comments (0)

Files changed (1)


     import decimal
-except ImportError: # for Python 2.3
+except ImportError:
     from django.utils import _decimal as decimal
-from win32com.client import Dispatch
+import win32com.client
+# The next two code lines request Decimal python types for
+# ADO currency values. This does not affect SQL decimal/numeric
+# types, which come back as strings.
 import pythoncom
-pythoncom.__future_currency__ = True # Request Python decimal from COM layer
+pythoncom.__future_currency__ = True
 from ado_consts import *
 from util import MultiMap
     timeout -- A command timeout value, in seconds (default 30 seconds)
-    c = Dispatch('ADODB.Connection')
+    c = win32com.client.Dispatch('ADODB.Connection')
     c.CommandTimeout = timeout
     c.ConnectionString = connection_string
    = None
     def _new_command(self, sproc_call):
-        self.cmd = Dispatch("ADODB.Command")
+        self.cmd = win32com.client.Dispatch("ADODB.Command")
         self.cmd.ActiveConnection = self.connection.adoConn
         self.cmd.CommandTimeout = self.connection.adoConn.CommandTimeout
         lo += (2L ** 32)
     return decimal.Decimal((long(hi) << 32) + lo)/decimal.Decimal(1000)
-def _cvtNumeric(variant):
-	return _convertNumberWithCulture(variant, decimal.Decimal)
 def _cvtFloat(variant):
     return _convertNumberWithCulture(variant, float)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.