[mod_python] POST variables with SetHandler ?

Adrian Immler mod_python-maillist at uebergeek.de
Thu Apr 14 08:54:52 EDT 2005

hello !

i have apache configured with these lines:

  <Directory /....../htdocs/mp>
    AddHandler mod_python .py
    PythonHandler init
    PythonDebug On
  <Directory /....../htdocs/music>
    SetHandler mod_python
    PythonHandler mod_python.publisher
    PythonDebug On

somehow in /music i cant access the POST variables but in /mp i can, with
absolutely the same code:

def function(req):
  req.content_type = "text/html"
  fs = FieldStorage(req)
  for key in fs.keys():
    req.write( key + ": "+ fs.getfirst(key) + "<br>\n" )

has this something to do with AddHandler and SetHandler, if yes, how can
i achive it that it also works with SetHandler ?

thanks for feedback in advance !


More information about the Mod_python mailing list