Update of /cvsroot/jtoolkit/jToolkit/data
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9117
Modified Files:
_PyADO.py
Log Message:
backing out classname detection as it only works if the typelibrary has already been registered
Added a TODO to do this properly...
Index: _PyADO.py
===================================================================
RCS file: /cvsroot/jtoolkit/jToolkit/data/_PyADO.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** _PyADO.py 9 Mar 2004 21:23:37 -0000 1.4
--- _PyADO.py 9 Mar 2004 21:24:22 -0000 1.5
***************
*** 37,41 ****
print "creating jToolkit.data.ADODB class library to speed up database operations..."
conn = win32com.client.Dispatch("ADODB.Connection")
! classname = sys.modules[conn.__class__.__module__].__doc__
pyclassfilename = os.path.join(os.path.dirname(__file__), 'ADODB.py')
pyclassfile = open(pyclassfilename, 'w')
--- 37,43 ----
print "creating jToolkit.data.ADODB class library to speed up database operations..."
conn = win32com.client.Dispatch("ADODB.Connection")
! version = str(conn.Version)
! # TODO: work out a real way to determine the Type Library name...
! classname = "Microsoft ActiveX Data Objects %s Library" % version
pyclassfilename = os.path.join(os.path.dirname(__file__), 'ADODB.py')
pyclassfile = open(pyclassfilename, 'w')
|