setup paste.progress.UploadProgressMonitor in middlware.py
app = UploadProgressMonitor(app, threshold = 1024)
and then upload a 15M file, paste raised exception ...
have any example about pylons with paste.progress?

-------------------------------------------------------------------------------------------------------------------
Exception happened during processing of request from ('127.0.0.1', 35823)
Traceback (most recent call last):
  File "/opt/python/2.5/lib/python2.5/site-packages/Paste-1.7-py2.5.egg/paste/ht
                                             tpserver.py", line 1056,
in process_request_in_thread
    self.finish_request(request, client_address)
  File "/opt/python/2.5//lib/python2.5/SocketServer.py", line 254, in
finish_req                                              uest
    self.RequestHandlerClass(request, client_address, self)
  File "/opt/python/2.5//lib/python2.5/SocketServer.py", line 522, in __init__
    self.handle()
  File "/opt/python/2.5/lib/python2.5/site-packages/Paste-1.7-py2.5.egg/paste/ht
                                             tpserver.py", line 432,
in handle
    BaseHTTPRequestHandler.handle(self)
  File "/opt/python/2.5//lib/python2.5/BaseHTTPServer.py", line 316, in handle
    self.handle_one_request()
  File "/opt/python/2.5/lib/python2.5/site-packages/Paste-1.7-py2.5.egg/paste/ht
                                             tpserver.py", line 427,
in handle_one_request
    self.wsgi_execute()
  File "/opt/python/2.5/lib/python2.5/site-packages/Paste-1.7-py2.5.egg/paste/ht
                                             tpserver.py", line 287,
in wsgi_execute
    self.wsgi_start_response)
  File "/opt/python/2.5/lib/python2.5/site-packages/Paste-1.7-py2.5.egg/paste/pr
                                             ogress.py", line 147, in
__call__
    _ProgressFile(environ, environ['wsgi.input'])
  File "/opt/python/2.5/lib/python2.5/site-packages/Paste-1.7-py2.5.egg/paste/pr
                                             ogress.py", line 52, in
__init__
    self.flush = rfile.flush
AttributeError: 'LimitedLengthFile' object has no attribute 'flush'

-- 
Best regrads,
IQDoctor

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to