[python-win32] DispatchWithEvents and ADO

2006-03-09 Thread Brad Posthumus
--- Mark Hammond [EMAIL PROTECTED] wrote: Oops - that last mail snuck away from me! Enabling debug mode for event handlers is tricky - you probably could open the makepy generated file and locate the function in the events class: def _query_interface_(self, iid):

[python-win32] DispatchWithEvents and ADO

2006-03-08 Thread Brad Posthumus
I'm having difficulty understanding exactly how DispatchWithEvents operates. I need to execute SQL statements on tables in an Oracle database (using ADO) and it runs fine when using Dispatch. However when I include DispatchWithEvents both the Execute() and Close() methods no longer work for my

Re: [python-win32] DispatchWithEvents and ADO

2006-03-08 Thread Mark Hammond
include DispatchWithEvents both the Execute() and Close() methods no longer work for my Dispatch object, with a Member not found error appearing. Why does Execute and Close work with Dispatch by itself but not when DispatchWithEvents is added? What I find interesting is that both the

Re: [python-win32] DispatchWithEvents and ADO

2006-03-08 Thread Mark Hammond
Oops - that last mail snuck away from me! Enabling debug mode for event handlers is tricky - you probably could open the makepy generated file and locate the function in the events class: def _query_interface_(self, iid): import win32com.server.util if