[python-win32] Need advice on iterator implementation in scripting host

2012-04-13 Thread Pulsonix Tech Support
We have an ActiveX scripting host implementation in our application (written in C++), so that users can run scripts to access our data from inside the application. Current problem is that iterating from Python script doesn't work right. You can iterate through a collection, but attempts to do t

[python-win32] PyIMAPIFolder.DeleteFolder ??

2012-04-13 Thread Sriram ET.
I am trying to programatically delete a Contacts folder (that I programatically created using PyIMAPI.CreateFolder), when I get the following exception: AttributeError: 'PyIMAPIFolder' object has no attribute 'DeleteFolder' I can see there is an EmptyFolder() implemented, and documented at: http:

[python-win32] WMI to find private memory usage

2012-04-13 Thread Riz Hossain
Hello, I am looking for a way to capture the private memory usage by a process (the one that shows on task manager). I searched online a lot but I am only seeing information on working memory size. It would be also a great if I could get the peak value of private memory usage. Thanks, Riz for

Re: [python-win32] WMI to find private memory usage

2012-04-13 Thread Tim Golden
On 13/04/2012 16:22, Riz Hossain wrote: > Hello, > > I am looking for a way to capture the private memory usage by a process > (the one that shows on task manager). I searched online a lot but I am > only seeing information on working memory size. It would be also a > great if I could get the pe

[python-win32] PyIMAPIFolder.DeleteFolder ??

2012-04-13 Thread Sriram ET.
I am trying to programatically delete a Contacts folder (that I programatically created using PyIMAPI.CreateFolder), when I get the following exception: AttributeError: 'PyIMAPIFolder' object has no attribute 'DeleteFolder' I can see there is an EmptyFolder() implemented, and documented at: http:

Re: [python-win32] SMIEngine(COM)

2012-04-13 Thread Tim Roberts
takeshi ikeya wrote: > > I showed your mail to the agent of Animatics. > He promised that he'll find a good software engineer in Animatics. > and make him find some answer. That seems like exactly the right thing to do. > But I am afraid Well, the only fear is that it will take too long. If

Re: [python-win32] WMI to find private memory usage

2012-04-13 Thread Riz Hossain
Thanks for the reply Tim. I have tried the below code: import psutil p = psutil.Process(3540) print p.get_memory_info() it outputs: meminfo(rss=157237248, vms=139837440) which is the memory for working set and commit. This is still not returning me the private value (which is what you see on

[python-win32] Error trying to do a EmptyFolder() (MAPI)

2012-04-13 Thread Sriram ET.
I have a folder in the Root Folder of a message store that I am trying to clear using EmptyFolder(). The code is as follows: folder = store.OpenEntry(eid, None, MOD_FLAG) hr = folder.EmptyFolder(0, None, 0) I get the error: ' Error: unsupported operand type(s) for