[mod_python] PSP strcache error

Volodya volodya at real.samuraj.org
Mon May 17 12:11:48 EDT 2004


On Mon, May 17, 2004 at 10:55:57AM +0300, Fabian Fagerholm wrote:
> Hi!
> 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?

http://www.modpython.org/pipermail/mod_python/2004-May/015552.html




More information about the Mod_python mailing list