Re: [python-win32] extending com objects

2007-05-25 Thread Ross McKerchar
Tim Golden wrote: This -- just in case you haven't come across the expression -- is called monkey-patching. It's a slightly general-purpose example of it, but it's something which is usefully easy to do in Python. (Consequently, it's easy to abuse but...) Ah right - nice to know my dodgy hack

[python-win32] DCOM

2007-05-25 Thread Francesco Guerrieri
Hello :-) I've got another newbie question. I'm trying to use DCOM. If I'm right, I have to register my application on both the client and the server, then set up the correct access/launch rights. It's easier said than done, though: in fact I continue getting runtime errors, namely 430

Re: [python-win32] extending com objects

2007-05-25 Thread Tim Golden
[Tim Golden] Presumably, then, if the original COM class exposed, say, a .GetGroups method which returned a list of groups, each of which you wanted to wrap, in this implementation, you'd add a .MyGetGroups method which called the original and wrapped the result? [Ross McKerchar] It's

Re: [python-win32] DCOM

2007-05-25 Thread Mark Hammond
Hello :-) I've got another newbie question. I'm trying to use DCOM. If I'm right, I have to register my application on both the client and the server, then set up the correct access/launch rights. After you've registered the COM object on the remote machine, you also need to configure dcom

Re: [python-win32] DCOM

2007-05-25 Thread Francesco Guerrieri
hi Mark, actually I have used dcomcnfg to set the various accesses. Now I'm at loss, since I have looked at all the various tabs and settings available, and it seems that all refer to enabling DCOM (which I did) and granting access (which I think I did). But I will continue trying... I've googled

Re: [python-win32] DCOM

2007-05-25 Thread Thomas Heller
Francesco Guerrieri schrieb: hi Mark, actually I have used dcomcnfg to set the various accesses. Now I'm at loss, since I have looked at all the various tabs and settings available, and it seems that all refer to enabling DCOM (which I did) and granting access (which I think I did). But I

[python-win32] Getting HRESULT back from a com automation

2007-05-25 Thread Richard Bell
I'm working on an application that automated IE in an apartment threaded model. I'm trying to get back the result of ie.Navigate(). According to the MSDN documentation it should return a HRESULT. It appears to return None. Is there a way to get the return code from the com interaction?