﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
1497	Django mod_python handler fails with older python 2.3	nick.phillips@…	Adrian Holovaty	"Due to what appears to be a bug in os.py in the version of python 2.3 shipped in Debian (Debian package version 2.3.5-2), Django's mod_python handler fails (in class ModPythonHandler's {{{__call__}}} method):
{{{
        os.environ.update(req.subprocess_env)
}}}
Newer versions of os.py have updated the way that os.environ.update handles non-dict arguments -- it seems in older versions we need to make sure we really do pass it a dict. So something like this:
{{{
        keys = req.subprocess_env.keys()
        tmp_env = {}
        for k in keys:
            tmp_env[k] = req.subprocess_env[k]
        os.environ.update(tmp_env)
}}}
is required (this is what the newer os.py does anyway)."	defect	closed	Core (Other)		normal	invalid			Unreviewed	0	0	0	0	0	0
