Re: [python-win32] Socket Connection Problem

2008-01-07 Thread João Abrantes
To fix the nat or port forwarding problem i went to my router's page and entered the following on the NAPT virtual server: Transport Type: TCP , External Start Port: 1236, External End Port: 1236, Internal Start Port: 1236, Internal End Port: 1236 since the socket server is binded to the port

[python-win32] SimpleXMLRPCServer encoding issue

2008-01-07 Thread Ludovic Reenaers
Hello, I'm writing a small wxpython application, using SimpleXMLRPCServer for client/server communication. It works pretty fine and I XMLRPCServer is relly reliant. During unit test phase,I found a small problem that I can't face since I'm not well aware about encoding. Anyway here is the

Re: [python-win32] Socket Connection Problem

2008-01-07 Thread Ludovic Reenaers
May be your provider blocks it... try config your app to communicate through 4400 or any http port that should be allowed by your provider...hope it can helps. Ludo From: João Abrantes Sent: Monday, January 07, 2008 11:04 AM To: Ludovic Reenaers ; python-win32@python.org Subject: RE:

Re: [python-win32] python on visual studio 2008

2008-01-07 Thread Suraj Barkale
Marcos Pinto markybob at gmail.com writes: does anyone know of a third-party which unofficially provides python built with visual studio 2008, There are patches for python trunk[1] which enable building python on Visual Studio 2008 (even the express editions). But I don't see it being

[python-win32] windows friendly commands.getstatusoutput

2008-01-07 Thread Reedick, Andrew
The commands.getstatusoutput wraps the command in { cmd; } 21. Needless to say, this is not windows friendly: import commands import commands status, output = commands.getstatusoutput('dir') print status 1 print output '{' is not recognized as an

Re: [python-win32] Access Outlook mails remotely using win32com

2008-01-07 Thread Tim Roberts
Antony Joseph wrote: I want know is it possible to access the outlook remotely ? if its possible , pls tell me how can i do this? any links , .. Of course it is possible. Outlook has a COM object model, just like the other Office applications. There are many samples on the web

[python-win32] %TEMP% directory

2008-01-07 Thread le dahut
Hello, I've a strange behavior with windows XP, %TEMP% points to %WINDIR%\TEMP instead of C:\Documents and Settings\USERNAME\Local Settings\Temp at logon time. Since I have a program that uses temp files it can write there when a non-admin user logs on so it failed with traceback etc. Why ?

[python-win32] get embedded images from outlook

2008-01-07 Thread Antony Joseph
Hi , This code can read the content of mails body , html and headers from outlook. in case , it there's an embedded image, Its not getting the image, My code... def GetPropFromStream(mapi_object,prop_id): try: stream = mapi_object.OpenProperty(prop_id,

[python-win32] How to set content-type in Headers

2008-01-07 Thread Antony Joseph
hi, I am reading and writing mails from outlook , I want to know how to set the content-type for my Headers. For example, I want set : content-transfer-encoding: 7bit content-type: text/plain; charset=iso-8859-1; format=flowed for subject content-transfer-encoding: 7bit content-type:

Re: [python-win32] %TEMP% directory

2008-01-07 Thread Tim Roberts
le dahut wrote: I've a strange behavior with windows XP, %TEMP% points to %WINDIR%\TEMP instead of C:\Documents and Settings\USERNAME\Local Settings\Temp at logon time. Since I have a program that uses temp files it can write there when a non-admin user logs on so it failed with traceback

Re: [python-win32] get embedded images from outlook

2008-01-07 Thread Tim Roberts
Antony Joseph wrote: This code can read the content of mails body , html and headers from outlook. in case , it there's an embedded image, Its not getting the image, ... prop_ids = (PR_BODY_A,MYPR_BODY_HTML_A,PR_TRANSPORT_MESSAGE_HEADERS_A) hr,data=obj.GetProps(prop_ids,0) body =

Re: [python-win32] How to set content-type in Headers

2008-01-07 Thread Tim Roberts
Antony Joseph wrote: I am reading and writing mails from outlook , I want to know how to set the content-type for my Headers. For example, I want set : content-transfer-encoding: 7bit content-type: text/plain; charset=iso-8859-1; format=flowed for subject content-transfer-encoding:

[python-win32] Memory Leak in MFC/C++ based Python Extended/Embedded code.

2008-01-07 Thread Dan Trowbridge
Hi all, I have a MS Windows/MFC based C++ code that I have implemented Python embedding/extending in. (I am using Visual Studio 2003.) The code seems to do what I have intended except it always reports a memory leak when it exits. I tried all kinds of things but there did not seem to be

Re: [python-win32] Memory Leak in MFC/C++ based Python Extended/Embedded code.

2008-01-07 Thread Mark Hammond
Python does allocate memory that is never freed - but in general, that is not a leak, just a 1-time allocation that lives for the life of the program. However, if you *repeatedly* call Py_Initialize/Finalize, I believe some leaks will happen, and I believe there is an open bug report in the