[python-win32] Permission denied erro while copying file from remote machine to local using win32wnet.WnetAddConnection

2009-06-30 Thread siddhartha veedaluru
Hi, I have used the following code snippet to copy files or folder from remote machine to local machine. I have used the same method to copy files to remote machine. Can some one point me to solve this? Or Help needed to copy files or folders from remote machne ot lcoal one and also remote to

Re: [python-win32] Permission denied erro while copying file from remote machine to local using win32wnet.WnetAddConnection

2009-06-30 Thread Tim Golden
siddhartha veedaluru wrote: Hi, I have used the following code snippet to copy files or folder from remote machine to local machine. I have used the same method to copy files to remote machine. Can some one point me to solve this? Am I missing something? Or can't you just catch the

Re: [python-win32] Shell extension debugging

2009-06-30 Thread Thomas Heller
Gertjan Klein schrieb: 2) I see print statements in the source code, but I have no idea where they go; I checked the event log, but they are not there. Are they logged anywhere? If not, why are they there to begin with? Any other tip on how to effectively debug this stuff would be most

Re: [python-win32] Shell extension debugging

2009-06-30 Thread Tim Golden
Thomas Heller wrote: Gertjan Klein schrieb: 2) I see print statements in the source code, but I have no idea where they go; I checked the event log, but they are not there. Are they logged anywhere? If not, why are they there to begin with? Any other tip on how to effectively debug this stuff

Re: [python-win32] Shell extension debugging

2009-06-30 Thread Tim Golden
Tim Golden wrote: Thomas Heller wrote: Gertjan Klein schrieb: 2) I see print statements in the source code, but I have no idea where they go; I checked the event log, but they are not there. Are they logged anywhere? If not, why are they there to begin with? Any other tip on how to

[python-win32] pywin32 for Python 3.1

2009-06-30 Thread Paul Moore
Will the pywin32-213.win32-py3.0.exe binary available from SF work for Python 3.1 (I suspect the answer is no :-() If not,is there an ETA for a Python 3.1 build? Now that 3.1 is out, I'm seriously considering switching my default Python to be Python 3, and pywin32 is one of the key things I need.

Re: [python-win32] Shell extension debugging

2009-06-30 Thread Gertjan Klein
Vernon Cole wrote: sys.stdout works like a normal Python file, so you should be able to assign a new file object to it. Yes, that looks like a clean and simple approach, that I may end up using, if nothing else for debugging. Thanks, Gertjan. ___

Re: [python-win32] Shell extension debugging

2009-06-30 Thread Gertjan Klein
Randy Syring wrote: Maybe I am missing something, but I use the Open Command Window Here power toy from: You're missing something. ;-) I have used that one too, for years, and it works reasonably well -- until you have multiple Python versions installed, and want to compile extensions for all

Re: [python-win32] Shell extension debugging

2009-06-30 Thread Randy Syring
Gertjan Klein wrote: Randy Syring wrote: Maybe I am missing something, but I use the Open Command Window Here power toy from: You're missing something. ;-) I have used that one too, for years, and it works reasonably well -- until you have multiple Python versions installed, and

Re: [python-win32] Shell extension debugging

2009-06-30 Thread Gertjan Klein
Tim Golden wrote: And also the win32traceutil facility which comes with the pywin32 extensions can help you out here. [...] Insanely helpful when you're trying to debug, an ISAPI extension module. Thanks for that, I just tried it and it works as advertised. Very useful indeed! Regards, Gertjan.

Re: [python-win32] Shell extension debugging

2009-06-30 Thread Tim Roberts
Gertjan Klein wrote: Ah, but this is what confuses me. I don't have a DLL: I have a .py file, which gets interpreted by python. The DDLs that get loaded are python25.dll and two pywin32 dlls (don't remember offhand which). So, when the extension is first loaded, pywin32 must load python,

Re: [python-win32] Shell extension debugging

2009-06-30 Thread Gertjan Klein
Tim Roberts wrote: It's not that easy. In Python, an object's method functions are just another piece of data in the object. When a client instantiates your COM object, the Python code creates an instance of your object, including pointers to the intermediate language for the method functions.

Re: [python-win32] Shell extension debugging

2009-06-30 Thread Gertjan Klein
Tim Roberts wrote: Gertjan Klein wrote: (I wish I could somehow pass icons to the submenus, but it seems that for that you need completely owner-drawn menu items, and that seems like a daunting task!) Correct. I decided against that in my own version. Well, I might have a go at it just for