equal
deleted
inserted
replaced
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 |