Mod_python's PSP: Python Server Pages
Subject:   psp
Date:   2005-07-28 02:51:11
From:   paulhide
Apache 2.0.53
mod_python 3.1.3
psp ?
All software installed locally on NT box.
Experimenting with session in psp code. crashes on line 165. I embedded the following code in a template file to try to find out why. Comments show the values that were returned.

docroot = req.document_root()
#docroot --> C:/Apache2/htdocs
dirpath =
#dirpath --> J:\/
c_path = dirpath[len(docroot):]

Clearly c_path (my version of c.path) is of zero length and when indexed [-1] on line 165 of the actual code, it crashes. Perhaps my apache config file contains unexpected (wrong) values.

Paul Hide