David Bear
David.Bear at asu.edu
Wed Jun 13 13:14:01 EDT 2007
When is the req object made available? I'm trying something simple like this. import sys try: from mod_python import apache except: print "import error" sys.exit(1) try: import dummymodule except: req.content_type = 'text/plain' req.write('error importing dummy') return apache.OK when the import dummymodule fails, the req object is not available to it. Without the req object, how does one send output anywhere? -- David Bear phone: 602-496-0424 fax: 602-496-0955 College of Public Programs/ASU University Center Rm 622 411 N Central Phoenix, AZ 85007-0685 "Beware the IP portfolio, everyone will be suspect of trespassing"
|