bin/cubicweb-ctl
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 20 Jul 2015 13:55:54 +0200
changeset 10582 bc2f6f0d7433
parent 0 b97547f5f1fa
child 12253 9165f4b7426b
permissions -rwxr-xr-x
[urlpublish] RESTPathEvaluator now use vid_from_rset This avoid cases where vid may be unexpectedly overwritten. For instance when you define a custom vid for a mime type in VID_BY_MIMETYPE, it will currently be overriden by the URL publisher when you access to /<etype> with the proper Accept header. To do so, a new 'check_table' argument is introduced, which may cause bw compatibility problems if the function has been monkey-patched. Also pep8 a bit the tests. Closes #5705835

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