Re: [python-win32] Apache & mod_python & win32com

2008-04-27 Thread Mark Hammond
> The problem with apache tho is, that it starts the thread itself and I > don't know wether my script runs on a new thread or not. Yeah - it sucks if there is no way to hook thread creation. > I did some > testing with calling CoInitialize at the start of my scripts and > CoUnitialize at the end

Re: [python-win32] Apache & mod_python & win32com

2008-04-27 Thread Dominique.Holzwarth
09:20 To: Holzwarth, Dominique (Berne Bauhaus); python-win32@python.org Subject: RE: [python-win32] Apache & mod_python & win32com > Thank you Rober & Alex for the answers :-) But I must admit that I'm > still bit uncertain about that whole issue. > As I understood apache

Re: [python-win32] Apache & mod_python & win32com

2008-04-27 Thread Mark Hammond
> Thank you Rober & Alex for the answers :-) > But I must admit that I'm still bit uncertain about that whole issue. > As I understood apache it is creating a thread for every request > anyway, or not? No - given the docs posted before, they are created once and shared. When a request completes,

Re: [python-win32] Apache & mod_python & win32com

2008-04-24 Thread Dominique.Holzwarth
__ Von: Robert Brewer [EMAIL PROTECTED] Gesendet: Donnerstag, 24. April 2008 17:57 An: Holzwarth, Dominique (Berne Bauhaus); python-win32@python.org Betreff: RE: [python-win32] Apache & mod_python & win32com [EMAIL PROTECTED] wrote: > I'm developing a web applic

Re: [python-win32] Apache & mod_python & win32com

2008-04-24 Thread Robert Brewer
[EMAIL PROTECTED] wrote: > Thank you Rober & Alex for the answers :-) > But I must admit that I'm still bit uncertain about that whole issue. > As I understood apache it is creating a thread for every request > anyway, or not? (and yes, on windows the MPM winnt is used) As I understand it, Apache

Re: [python-win32] Apache & mod_python & win32com

2008-04-24 Thread Mike Driscoll
[EMAIL PROTECTED] wrote: Hello everyone I'm developing a web application using mod_python and the apache web server. That application has to handle xml files and for that I'm using win32com with with MSXML. My problem is, that apache spawns a new process / thread (not sure wether ist a proces

Re: [python-win32] Apache & mod_python & win32com

2008-04-24 Thread Robert Brewer
[EMAIL PROTECTED] wrote: > I'm developing a web application using mod_python and the apache web > server. That application has to handle xml files and for that I'm using > win32com with with MSXML. > > My problem is, that apache spawns a new process / thread (not sure > wether ist a process or thr

Re: [python-win32] Apache & mod_python & win32com

2008-04-24 Thread Alex Denham
Hi, first of all, just import pythoncom directly import pythoncom As far as where to put pythoncom.CoInitialize() I'm not certain but i think at the top (or start) of your whole application.. if it's threaded then call it for each thread (at the start) "Initializes the COM library on the curr