Re: [python-win32] MAPI Advise Sink

2008-08-05 Thread Mark Hammond
I'm afraid that the MAPI module doesn't support that interface and its unlikely you will be able to get it going with an IDispatch based interface. This interface is very small though, so if you are willing to take a little messing around I could add that interface and send you a new copy of the MA

[python-win32] MAPI Advise Sink

2008-08-05 Thread Brenda Bell
I'm trying to write a simple program that connects to MAPI and listens for change events on the contents table for the default receive folder. According to the documentation, PyIMAPITable.Advise takes a PyIMAPIAdviseSink. It's unclear as to how I implement an object that supports this int

[python-win32] WSH and Python

2008-08-05 Thread Kain
Oki, I've found. It seems that Python doesn't recognize *.pys files as regular modules. So, I've just change my python script file extension to *.py and it works fine. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/li

Re: [python-win32] Create dll from python source code

2008-08-05 Thread Mark Hammond
I'm not aware of a tool that will turn a python script into a DLL with arbitrary entry-points. py2exe will let you create DLLs with entry points suitable for COM objects or ISAPI extensions. HTH, Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of _ _ Sent: Tuesday, 5 Augu

[python-win32] WSH and Python

2008-08-05 Thread Kain
Sorry for xml tags. I've think that "<" and ">" wouldn't been allowed. K. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] WSH and Python

2008-08-05 Thread Kain
Hi, I'm working on a wsh script which import some Python ressources. I wish to create a Python COM Object in order to wrap my wsh scripts to an imported Python module. But, After many tryings and days, I'have not succeed in it. The code below is very simple but when I try to run the WSH's job I g

[python-win32] Create dll from python source code

2008-08-05 Thread _ _
How create a dll from python source code?... py2exe? Thanks a lot... ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Is this user a member of a given Active Directory group?

2008-08-05 Thread Tim Golden
Vernon Cole wrote: Tim, You Da Man! Vernon based on your suggestion, I have: import win32security def testMemberOf(GROUP_NAME): try: sid, system, type = win32security.LookupAccountName(None, GROUP_NAME) except: raise ValueError, '"%s" is not a valid group name'%GROU