[python-win32] IronPython COM

2008-07-30 Thread birdprince
I have implemented a COM in C++,buy i don't know how to use this COM in IronPython. For example: the COM's ProgID is "MyCOM1.AdvMethod".this COM have two interfaces,the default interface's name is IAdvMethod,IAdvMethod have a method which name is Add,the second interface's name is IBasicMethod.

[python-win32] Python and COM

2008-07-30 Thread birdprince
I have implemented a COM in C++,buy i don't know how to use this COM in python. For example: the COM's ProgID is "MyCOM1.AdvMethod".this COM have two interfaces,the default interface's name is IAdvMethod,IAdvMethod have a method which name is Add,the second interface's name is IBasicMethod. IBa

[python-win32] Python COM

2008-07-30 Thread birdprince
I have implemented a COM in C++,buy i don't know how to use this COM in python. For example: the COM's ProgID is "MyCOM1.AdvMethod".this COM have two interfaces,the default interface's name is IAdvMethod,the second interface's name is IBasicMethod. I use this method to call the IAdvMethod's met

Re: [python-win32] name not defined

2008-07-30 Thread Tim Roberts
kNish wrote: I am using the following code to send mail from a open window in maya application. This gives me following error. I think it says that A2 is not created. What is a possible way to have this code send a mail. ... # Error: name 'A2' is not defined # Traceback (most recent

Re: [python-win32] How can I modify owner file in windows??

2008-07-30 Thread Tim Golden
_ _ wrote: Sorry... but..., how can I enable SE_RESTORE_NAME privilege?... Is a user property? It's a privilege. Have a look here: http://timgolden.me.uk/python-on-windows/programming-areas/security/privileges.html#id3 TJG ___ python-win32 mailing l

Re: [python-win32] How can I modify owner file in windows??

2008-07-30 Thread _ _
Sorry... but..., how can I enable SE_RESTORE_NAME privilege?... Is a user property? Thanks again. 2008/7/30 Tim Golden <[EMAIL PROTECTED]> > Roger Upole wrote: > >> You need to enable SE_RESTORE_NAME privilege to set >> the owner to an account other than your own. >> > > Wow. It's amazing what y

Re: [python-win32] name not defined

2008-07-30 Thread Dahlstrom, Roger
That seems like a roundabout way to send an email. def sendEmail(toe, frome, subject, body): import smtplib headers = "From: %s\r\nTo: %s\r\nSubject: %s\r\n\r\n" % (frome, toe, subject) message = headers + body mailsvr = "MyMailServer" mailServer = smtplib.SMTP(mailsvr) m

[python-win32] name not defined

2008-07-30 Thread kNish
Hi, I am using the following code to send mail from a open window in maya application. This gives me following error. I think it says that A2 is not created. What is a possible way to have this code send a mail. BRgds, kNish # Error: name 'A2' is not defined # Traceback (most recent ca

Re: [python-win32] How can I modify owner file in windows??

2008-07-30 Thread Tim Golden
Roger Upole wrote: You need to enable SE_RESTORE_NAME privilege to set the owner to an account other than your own. Wow. It's amazing what you can bypass when you need to: presumably that's for use by backup/restore mechanisms which need to recreate the original security settings? Thanks as ev