cubicweb/__main__.py
author Julien Cristau <julien.cristau@logilab.fr>
Mon, 08 Feb 2016 15:37:52 +0100
changeset 11157 42fa15632493
parent 11099 5fdbf6f2db88
child 12253 9165f4b7426b
permissions -rwxr-xr-x
[web/test] return the hash of uploaded files in FileUploadTC instead of their contents json must be unicode, which doesn't go well with arbitrary file contents. Compute the file hash instead, as we know the hexdigest is (ascii) text.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11099
5fdbf6f2db88 Add a __main__ to cubicweb
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
     1
from cubicweb.cwctl import run
5fdbf6f2db88 Add a __main__ to cubicweb
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
     2
import sys
5fdbf6f2db88 Add a __main__ to cubicweb
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
     3
5fdbf6f2db88 Add a __main__ to cubicweb
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
     4
run(sys.argv[1:])