[mod_python] Re: Problem with psphandler

Alexander Nagel feuerschwanz76 at web.de
Fri Mar 18 11:22:47 EST 2005


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')
> 



More information about the Mod_python mailing list