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 j

Re: [python-win32] Shell extension debugging

2009-06-30 Thread Tim Roberts
Gertjan Klein wrote: > Yes. However, pywin32 is the one that holds the pointer to the object, > not Windows COM (at least, I assume this is the case). Well, only at the most technical level. The most useful mental model is to think of the Python object as being the thing that gets passed to the C

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 >functio

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, co

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, Gertj

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 w

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 a

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. ___ p

Re: [python-win32] Shell extension debugging

2009-06-30 Thread Gertjan Klein
Tim Roberts wrote: >I was going to respond "no" immediately, but now you've got me >thinking. Explorer loads the DLL, instantiates the COM object, and >keeps it loaded forever. I think that fact alone makes it impossible; >even if you added a backdoor to reload the module, you still have an >obj

[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 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 effectively

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 w

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

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 permissi

[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