bin/cubicweb-ctl
author Denis Laxalde <denis.laxalde@logilab.fr>
Wed, 29 Nov 2017 16:14:57 +0100
changeset 12231 55924e962cd7
parent 0 b97547f5f1fa
child 12253 9165f4b7426b
permissions -rwxr-xr-x
[wsgi] Convert "code" passed to WSGIResponse as integer WSGIResponse is passed a Request.status_out in CubicWebWSGIApplication._render(), which, starting from Python 3.5, is an instance of HTTPStatus. However, webtest still expects a 3-digits value as status string. Fortunately, calling int() on an HTTPStatus works.

#!/usr/bin/env python
from cubicweb.cwctl import run
import sys
run(sys.argv[1:])