[mod_python] How to upload files using mod_python's publisher handler?

thanos vassilakis thanos at 0x01.com
Sun Sep 15 22:48:07 EST 2002


Try using PSO:
See http://www.scriptfoundry.com/modules/pso/doc/pso-guide.html#files

On Thursday, September 12, 2002, at 02:20 PM, Andres Meza wrote:

> Greetings.
>
> I have created a python CGI script that can upload files sucessfully. 
> Now, I want to create a mod_python script with the same feature using 
> the "publisher" handler and I get this error:  
>
>
> [Thu Sep 12 08:53:41 2002] [error] PythonHandler mod_python.publisher: 
> Traceback (most recent call last):
> [Thu Sep 12 08:53:41 2002] [error] PythonHandler 
> mod_python.publisher:   File "/home/mrnet/rpm/tmp/mod_python-
> root/usr/lib/python2.2/site-packages/mod_python/apache.py", line 193, 
> in Dispatch
> [Thu Sep 12 08:53:41 2002] [error] PythonHandler 
> mod_python.publisher:   File "/home/mrnet/rpm/tmp/mod_python-
> root/usr/lib/python2.2/site-packages/mod_python/publisher.py", line 
> 104, in handler
> [Thu Sep 12 08:53:41 2002] [error] PythonHandler 
> mod_python.publisher:   File "/home/mrnet/rpm/tmp/mod_python-
> root/usr/lib/python2.2/site-packages/mod_python/publisher.py", line 
> 308, in __init__
> [Thu Sep 12 08:53:41 2002] [error] PythonHandler mod_python.publisher: 
> AttributeError: 'file' object has no attribute '__methods__'
>
> Anyone have an idea about why I get this error?
>
> Thanks for your time,

>





More information about the Mod_python mailing list