Did I find the right examples for you? yes no

All Samples(27)  |  Call(27)  |  Derive(0)  |  Import(0)

src/w/e/Webware-for-Python-1.1.1/COMKit/Examples/ADOSample.py   Webware-for-Python(Download)
    def recordset(self, sql):
        # Open an ADO connection
        conn = Dispatch('ADODB.Connection')
        conn.Open('MyDataSource')
        # Store the connection in the Application object.  We're never going to
        # Open and return the requested recordset
        rs = Dispatch('ADODB.Recordset')
        rs.Open(sql, conn)
        return rs
 

src/p/y/pyutilib.excel-3.1.2/pyutilib/excel/excel.py   pyutilib.excel(Download)
    def __init__(self, filename):
        self.connection = win32com.client.Dispatch('ADODB.Connection')
        self.connection.Open(
            'PROVIDER=Microsoft.Jet.OLEDB.4.0;'+
            'DATA SOURCE=%s'%filename+
    def columns(self):
        """ Returns a list of column names for the sheet.
        """
        recordset = win32com.client.Dispatch('ADODB.Recordset')
        recordset.Open(unicode('SELECT * FROM [%s]'%self.name), self.document.connection, 0, 1)
        recordset = win32com.client.Dispatch('ADODB.Recordset')
        if self.order_by:
            recordset.Open(unicode('SELECT * FROM [%s] ORDER BY %s'%(self.name, self.order_by)), self.document.connection, 0, 1)
        else:
            recordset.Open(unicode('SELECT * FROM [%s]'%self.name), self.document.connection, 0, 1)

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Lib/site-packages/pythonwin/pywin/framework/editor/vss.py   main(Download)
			if not database:
				database = pythoncom.Missing
			g_sourceSafe.Open(database, pythoncom.Missing, pythoncom.Missing)
		item = g_sourceSafe.VSSItem("$/%s/%s" % (project, vssFname))
		item.Checkout(None, fileName)

src/t/r/TrustRouter-HEAD/client/packaging/Windows/Python32/Lib/site-packages/pythonwin/pywin/framework/editor/vss.py   TrustRouter(Download)
			if not database:
				database = pythoncom.Missing
			g_sourceSafe.Open(database, pythoncom.Missing, pythoncom.Missing)
		item = g_sourceSafe.VSSItem("$/%s/%s" % (project, vssFname))
		item.Checkout(None, fileName)

src/d/e/Dejavu-1.5.0/dejavu/storage/msaccessthreads.py   Dejavu(Download)
def get_conn():
    conn = win32com.client.Dispatch(r'ADODB.Connection')
    conn.Open(c)
    return conn
 
def print_table(conn):
    res = win32com.client.Dispatch(r'ADODB.Recordset')
    res.Open("SELECT * FROM test;", conn)
    data = []
    if not (res.EOF and res.BOF):

src/s/u/SublimeSpeech-HEAD/lib/pywin64bit/pythonwin/pywin/framework/editor/vss.py   SublimeSpeech(Download)
			if not database:
				database = pythoncom.Missing
			g_sourceSafe.Open(database, pythoncom.Missing, pythoncom.Missing)
		item = g_sourceSafe.VSSItem("$/%s/%s" % (project, vssFname))
		item.Checkout(None, fileName)

src/s/u/SublimeSpeech-HEAD/lib/pywin32bit/pythonwin/pywin/framework/editor/vss.py   SublimeSpeech(Download)
			if not database:
				database = pythoncom.Missing
			g_sourceSafe.Open(database, pythoncom.Missing, pythoncom.Missing)
		item = g_sourceSafe.VSSItem("$/%s/%s" % (project, vssFname))
		item.Checkout(None, fileName)

src/e/i/einstein-HEAD/Python25Einstein/Lib/site-packages/pythonwin/pywin/framework/editor/vss.py   einstein(Download)
			if not database:
				database = pythoncom.Missing
			g_sourceSafe.Open(database, pythoncom.Missing, pythoncom.Missing)
		item = g_sourceSafe.VSSItem("$/%s/%s" % (project, vssFname))
		item.Checkout(None, fileName)

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Lib/site-packages/win32/scripts/VersionStamp/vssutil.py   main(Download)
def GetSS():
	ss=win32com.client.Dispatch("SourceSafe")
	# SS seems a bit wierd.  It defaults the arguments as empty strings, but
	# then complains when they are used - so we pass "Missing"
	ss.Open(pythoncom.Missing, pythoncom.Missing, pythoncom.Missing)

src/t/r/TrustRouter-HEAD/client/packaging/Windows/Python32/Lib/site-packages/win32/scripts/VersionStamp/vssutil.py   TrustRouter(Download)
def GetSS():
	ss=win32com.client.Dispatch("SourceSafe")
	# SS seems a bit wierd.  It defaults the arguments as empty strings, but
	# then complains when they are used - so we pass "Missing"
	ss.Open(pythoncom.Missing, pythoncom.Missing, pythoncom.Missing)

  1 | 2 | 3  Next