etwist/server.py
branchstable
changeset 7815 2a164a9cf81c
parent 7764 c709f6c457ff
child 7879 9aae456abab5
equal deleted inserted replaced
7814:1ec9fe1dfba9 7815:2a164a9cf81c
   306             # blocks other HTTP requests processing
   306             # blocks other HTTP requests processing
   307             # due to the clumsy & slow parsing algorithm of cgi.FieldStorage
   307             # due to the clumsy & slow parsing algorithm of cgi.FieldStorage
   308             # so we deferred that part to the cubicweb thread
   308             # so we deferred that part to the cubicweb thread
   309             request.process_multipart()
   309             request.process_multipart()
   310             return self._render_request(request)
   310             return self._render_request(request)
   311         except:
   311         except Exception:
   312             errorstream = StringIO()
   312             errorstream = StringIO()
   313             traceback.print_exc(file=errorstream)
   313             traceback.print_exc(file=errorstream)
   314             return HTTPResponse(stream='<pre>%s</pre>' % errorstream.getvalue(),
   314             return HTTPResponse(stream='<pre>%s</pre>' % errorstream.getvalue(),
   315                                 code=500, twisted_request=request)
   315                                 code=500, twisted_request=request)
   316 
   316