Re: [python-win32] Can pythoncom.PumpWaitingMessages() generate a COMerror?

2007-05-29 Thread Mark Hammond
> Can pythoncom.PumpWaitingMessages() generate a COM error? In > particular if > there is a running instance of IE that is terminated by some > external event, > say the user or a script, will > pythoncom.PumpWaitingMessages() generate a > COM error since the automation object is gone? PumpWai

Re: [python-win32] Win32 COM cache problem

2007-05-29 Thread Mark Hammond
> I dig a bit more and it appears that the python win32 com > module requires all target typelibs to be in the app current > directory. Otherwise the cache is systematically re-generated > anytime a new scripting engine is created. This should not be the case, and there should be no assumption

Re: [python-win32] Python Programmming on win32 - the book

2007-05-29 Thread Stephen George
Hi Mark, For your info I contacted O'Reilly about the book after being told by a bookseller it appears "out of print" Here is their response > Hello, > > "Python Programming On Win32" is still "In Print". > We have it on a "Print on demand" status. > Every month or so we print enough to fill our

Re: [python-win32] Win32 COM cache problem

2007-05-29 Thread Marc-André Belzile
I dig a bit more and it appears that the python win32 com module requires all target typelibs to be in the app current directory. Otherwise the cache is systematically re-generated anytime a new scripting engine is created. Am I doing something wrong ? Thanks in advance... -mab -Original

[python-win32] Can pythoncom.PumpWaitingMessages() generate a COM error?

2007-05-29 Thread Richard Bell
Can pythoncom.PumpWaitingMessages() generate a COM error? In particular if there is a running instance of IE that is terminated by some external event, say the user or a script, will pythoncom.PumpWaitingMessages() generate a COM error since the automation object is gone? Thanks for any clues.

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

2007-05-29 Thread Richard Bell
My misunderstanding. As far as I know now absent some error all I really expect is S_OK. I'm adding in the python.com_error checking now and starting careful testing. If something other than S_OK turns up in the IE interface I'll let you know. Thanks. Regards, Richard |> As to what codes I'm ex

Re: [python-win32] shell extension property sheet

2007-05-29 Thread TK Soh
On 5/27/07, Mark Hammond <[EMAIL PROTECTED]> wrote: > > On 5/27/07, Mark Hammond <[EMAIL PROTECTED]> wrote: > > > > I'm try to add a property sheet to my shell extension project, but > > > > found that pywin32 doesn't support it. What's the best > > thing I can do, > > > > other than hoping it will

Re: [python-win32] win32net

2007-05-29 Thread Tim Golden
Teodor Ivanov wrote: > The statement '"global group" can only contain domain users' is true only for > MS domains running in mixed mode ( I mean the OS of primary domain controller > is > Windows 2000 or 2003 ), but if it is in native 2000 or native 2003 mode, then > the global security groups c

Re: [python-win32] win32net

2007-05-29 Thread Teodor Ivanov
Tim Roberts probo.com> writes: > > Wolf, Matthias ALRT/ELD wrote: > > >Thanks for your answer! > > > >You are right, but in the group 'GROUP' are users and groups and I want to receive both. Probably I need > something like "win32net.NetGroupGetGroups" instead of "win32net.NetGroupGetUsers". Is

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

2007-05-29 Thread Mark Hammond
> As to what codes I'm expecting ... heaven only knows. I'm > working with IE 7 > now and it appears willing to return most anything under > various boundary conditions. I guess I was asking if you are expecting any 'success' codes other than S_OK. These are rare, and always explicitly documente

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

2007-05-29 Thread Richard Bell
Mark, Aside from the example I posted earlier, I adopted the approach you outlined in your note, ie. I placed any exception results in class instance storage. It looks like that will work although I've got a good deal more development to do before being sure. As to what codes I'm expecting ... he