Adam Langley
agl at linuxpower.org
Mon Jun 25 19:16:03 EST 2001
(I've searched thru the list archives and the following message seems to be relevent, but there was no useful followup: http://www.modpython.org/pipermail/mod_python/2001-May/001324.html) Using the following test script: from mod_python import apache i = 0 def test(req): req.content_type = "text/html" req.send_http_header () global i req.write (str(i) + "<br>") i += 1 return "" This works as expected until you start refreshing quickly, when the counter gets reset. Why is mod_python reimporting the file? httpd.conf: SetHandler python-program PythonHandler mod_python.publisher PythonInterpreter main PythonDebug on Thanks AGL -- Never underestimate the power of a small tactical nuclear weapon.
|