Re: [python-win32] WIN32COM: Cannot get event interface given a wrapped dispatch pointer

2008-11-10 Thread Mark Hammond
> It is my opinion that the architecture is flawed, While you have obviously struck a bug, I need to understand it more before I can comment further. I'll try and reproduce it using the C++ test object and IDL file - if you could help do that it would be greatly appreciated and help a timely solu

Re: [python-win32] Python COM: Automatic wrap/unwrap?

2008-11-10 Thread Mark Hammond
> It seems that the basic Python types are wrapped and > unwrapped automatically when needed. Is there some way of > extending this mechanism? Is there a class I can inherit > from, or a magic attribute I can set, or some registration > process I can use, to get instances of my class automatically

[python-win32] ODBC dates and buffers

2008-11-10 Thread Mark Hammond
The 'odbc' module has always had its own 'date' object - an object with a 'value' attribute holding a integer which is supposed to be compatible with the time module. It predates the datetime module by many years. As part of the py3k work Roger has been doing, he dropped the custom types from the

[python-win32] Python COM: Automatic wrap/unwrap?

2008-11-10 Thread Greg Ewing
I'm creating a COM server in Python that will have one main class, with methods that create and return instances of other classes. I've found that I need to use win32com.server.util.wrap and unwrap on these objects when they pass over a COM connection. This doesn't seem very convenient, especiall

Re: [python-win32] WIN32COM: Cannot get event interface g iven a wrapped dispatch pointer

2008-11-10 Thread Brad Johnson
Brad Johnson ballardtech.com> writes: Just as a follow-up, this didn't even end up being a complete solution. With my particular combination of type libraries in my application, I can't rely on the gencache to hold the correct mapping in the mapCLSIDToClass dict for reasons stated earlier. I nee

[python-win32] Problem of value returned by COM, from IE, with prototype.js

2008-11-10 Thread Michel Claveau
(Problem of value returned by COM, from IE, with prototype.js) Hi! I have this file (C:\titi.htm): montableau = new Array(111,222,333,444); function visu(txt){ alert(txt +":"+montableau);} I call it, with (Python version): import win32com.client ie=win32com.client.Dispatch('InternetEx