[mod_python] PSP strcache error

Fabian Fagerholm fabbe at paniq.net
Mon May 17 11:55:57 EDT 2004

I'm trying to make use of PSP in my own handler. My handler generates
PSP code and tries to construct a PSP object with this code, using the
string argument of the PSP constructor:

from mod_python import apache, psp
my_psp_object = psp.PSP (req, string = my_psp_string)

However, I get the following error (edited):

File "/usr/lib/python2.3/site-packages/mod_python/psp.py", line 114, in __init__
    cached = strcache.get(string)

NameError: global name 'strcache' is not defined

Looking at psp.py, indeed I can't seem to find any place where the
strcache variable would be initialized.

Any hints?

Fabian Fagerholm <fabbe at paniq.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://modpython.org/pipermail/mod_python/attachments/20040517/95f37e1e/attachment.bin

More information about the Mod_python mailing list