win32 in mod_python

Naveen Garg <[email protected]> Thu, 4 Jun 2009 00:31:48 -0400
Newsgroups gmane.comp.python.mod_python
Message-ID <[email protected]>
I have a working test installation of mod_python.
But, the following code does not seem to run in my mod_python handler:

from mod_python import apache
import win32api
import win32com.client
shell = win32com.client.Dispatch("WScript.Shell")
shell.Run("calc")
def handler(req):
    req.content_type = 'text/plain'
    shell.Run("calc")
    req.write("Hello Wordfd2!")
    return apache.OK

Is their a security setting that turns off access to win32com, etc...?

What I really want to do is use cdll.LoadLibrary from mod_python as a bridge
to other dll's without having to compile another apache module from scratch.


Thanks.

_______________________________________________
Mod_python mailing list
[email protected]
http://mailman.modpython.org/mailman/listinfo/mod_python