[mod_python] Re: Problem with psphandler

Craig Warren craig.warren at encorp.com
Sat Mar 19 20:25:39 EST 2005


Sorry
req.write("test")

is what I meant to write.
NOT
psp.write

Craig

Alexander Nagel wrote:

> Hi,
> psp.write doesn't work.
> This is the error code:
> Mod_python error: "PythonHandler mod_python.psp"
>
> Traceback (most recent call last):
>
>   File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 
> 299, in HandlerDispatch
>     result = object(req)
>
>   File "/usr/lib/python2.3/site-packages/mod_python/psp.py", line 297, 
> in handler
>     p.run()
>
>   File "/usr/lib/python2.3/site-packages/mod_python/psp.py", line 208, 
> in run
>     exec code in global_scope
>
>   File "/var/www/index.psp.de", line 47, in ?
>     %>
>
> AttributeError: PSPInterface instance has no attribute 'write'
>
> But
> <%
> req.write ("Test")
> %>
> works fine.
> Thanks to Robert G.
> Greets
> Alex
>
> Craig Warren schrieb:
>
>> Print will just print to stdout
>>
>> try
>> psp.write('test')
>>
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python




More information about the Mod_python mailing list