Re: COM callbacks in Python

2006-03-29 Thread Dan
One final note, The code posted does work. Unfortunately, the event only fires for the ADO connection who actually triggered the event. In my opinion, completely useless event. So the Python worked, The ADO does not do what its name implies. Thanks to all. Dan -- http://mail.python.org/mailman/li

Re: COM callbacks in Python

2006-03-24 Thread Dan
Ok, seems to fire at least once now, had to implement OnWillChangeRecordset as well. Definitely don't have to implement all the events though. Still not sure why its not acting like it should. Maybe I am looking at the wrong event? I want to know if the database has changed when someone else enters

Re: COM callbacks in Python

2006-03-24 Thread Dan
Looked at the makepy, code now looks like this: import win32com.client import win32gui import time import pythoncom finished = 0 defaultNamedNotOptArg=pythoncom.Empty class ADOEvents: def OnRecordsetChangeComplete(self, adReason=defaultNamedNotOptArg, pError=defaultNamedNotOptArg,

Re: COM callbacks in Python

2006-03-23 Thread Roger Upole
"Dan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I need to register for a COM callback under Windows. I am using an ADO > recordset interface like this: > > import win32com.client > import time > connect = win32com.client.Dispatch("ADODB.Connection") > recordset = win32com.clien

COM callbacks in Python

2006-03-23 Thread Dan
I need to register for a COM callback under Windows. I am using an ADO recordset interface like this: import win32com.client import time connect = win32com.client.Dispatch("ADODB.Connection") recordset = win32com.client.Dispatch("ADODB.Recordset") connect.Open("Driver={SQLServer};Server=devserver