Re: [python-win32] Vista, _winreg and "Access denied"

2008-05-27 Thread Tim Golden
le dahut wrote: Hello With Vista (XP works fine), when using SetValueEx in a script ran by an administrator I get "Access Denied". I know that's it's due to UAC so does someone know how to do a 'sudo' when using something else than CreateProcess ? I'm not on Vista at the mo, so this is a ve

[python-win32] Vista, _winreg and "Access denied"

2008-05-27 Thread le dahut
Hello With Vista (XP works fine), when using SetValueEx in a script ran by an administrator I get "Access Denied". I know that's it's due to UAC so does someone know how to do a 'sudo' when using something else than CreateProcess ? ___ python-win32

Re: [python-win32] Request for comments

2008-05-27 Thread Tim Golden
Mike Driscoll wrote: Tim Golden wrote: Yes, I tried that to see what you meant. I'm not sure there's much I'm going to be able to do about that, unless someone jumps in with a solution. My main point about the examples is that they're self-contained. (ie you don't need to prearrange any data or

Re: [python-win32] Request for comments

2008-05-27 Thread Mike Driscoll
Tim Golden wrote: bob gailer wrote: Tim Roberts wrote: bob gailer wrote: Please omit the space before ( in code. I find that very distracting. Example: print result.Properties_ ("sValue").Value # current print result.Properties_("sValue").Value # preferred, and how most code I've seen lo

Re: [python-win32] Request for comments

2008-05-27 Thread Mark Hammond
TimG writes: > That's fine for two lines, but I can't change a whole script to work > that way :) The intepreter window in PythonWin just doesn't work > the same way as the conventional console-based one, it seems. Yeah - it is pretty dumb. I'd love to make pythonwin smarter in this regard thoug

Re: [python-win32] Vista, _winreg and "Access denied"

2008-05-27 Thread Mark Hammond
> With Vista (XP works fine), when using SetValueEx in a script ran by an > administrator I get "Access Denied". I know that's it's due to UAC so > does someone know how to do a 'sudo' when using something else than > CreateProcess ? The short version of my understanding of Vista and UAC: Firstly

[python-win32] Docs & bonus: pywin32 docs

2008-05-27 Thread Tim Golden
Thanks to everyone who's replied and commented onlist and in private mail. Hopefully within the next few days I'll have completed at least one more section of the docs and I'll announce the project more formally on c.l.py etc. Please feel free to continue to comment and to contribute ideas and su

Re: [python-win32] Docs & bonus: pywin32 docs

2008-05-27 Thread Simon Dahlbacka
Very nice, however you might want to fix the code samples to be properly indented instead of collapsed whitespace.. regards, Simon On Tue, May 27, 2008 at 6:47 PM, Tim Golden <[EMAIL PROTECTED]> wrote: > Thanks to everyone who's replied and commented onlist and in private mail. > Hopefully withi

Re: [python-win32] Request for comments - the spaces issue

2008-05-27 Thread Tim Roberts
bob gailer wrote: Mark Hammond wrote: In general, I *try* and stick to the Python Style Guide (http://www.python.org/dev/peps/pep-0008/) Interesting. I don't like the idea of 2 spaces after a period. Internet research on this topic seems to favor one space. I'm not sure where you got that.

Re: [python-win32] Docs & bonus: pywin32 docs

2008-05-27 Thread Tim Golden
Simon Dahlbacka wrote: Very nice, however you might want to fix the code samples to be properly indented instead of collapsed whitespace.. Can you point me towards an example? TJG ___ python-win32 mailing list python-win32@python.org http://mail.pyth

Re: [python-win32] Request for comments

2008-05-27 Thread Mike Driscoll
Tim Golden wrote: Mike Driscoll wrote: Tim Golden wrote: Yes, I tried that to see what you meant. I'm not sure there's much I'm going to be able to do about that, unless someone jumps in with a solution. My main point about the examples is that they're self-contained. (ie you don't need to prea

[python-win32] Dispatch InternetExplorer.Application fails

2008-05-27 Thread Rickey, Kyle W
Whenever I try the following: >> import win32com.client >> ie = win32com.client.Dispatch("InternetExplorer.Application") I get this traceback: Traceback (most recent call last): File "", line 1, in File "C:\Python25\Lib\site-packages\win32com\client\__init__.py", line 95, in Dispatch di

Re: [python-win32] Dispatch InternetExplorer.Application fails

2008-05-27 Thread Tim Golden
Rickey, Kyle W wrote: Whenever I try the following: import win32com.client ie = win32com.client.Dispatch("InternetExplorer.Application") I get this traceback: Traceback (most recent call last): File "", line 1, in File "C:\Python25\Lib\site-packages\win32com\client\__init__.py", line 95

Re: [python-win32] Dispatch InternetExplorer.Application fails

2008-05-27 Thread Rickey, Kyle W
Tim, thanks for your response. I realize where I've got this messed up. I had turned off Windows File Protection for C:\Program Files\Internet Explorer So that I could replace internet explorer with my own executable that calls firefox :) The reason for this is some of our proprietary software is

Re: [python-win32] MSProject and export maps

2008-05-27 Thread Ron Henderson
Thanks so much for trying this out. You've verified that it's possible to get this working. However, when I execute the same code, the file "p2.csv" is exactly same size as p1.mpp and contains binary data, not the text. Since you have it working it must be a bug in either my version of MSPro

Re: [python-win32] Request for comments - the spaces issue

2008-05-27 Thread bob gailer
Tim Roberts wrote: bob gailer wrote: Mark Hammond wrote: In general, I *try* and stick to the Python Style Guide (http://www.python.org/dev/peps/pep-0008/) Interesting. I don't like the idea of 2 spaces after a period. Internet research on this topic seems to favor one space. I'm not sure