bin/cubicweb-ctl
author Pierre-Yves David <pierre-yves.david@logilab.fr>
Wed, 26 Jun 2013 14:46:24 +0200
changeset 9110 ed8b383d94fd
parent 0 b97547f5f1fa
child 12253 9165f4b7426b
permissions -rwxr-xr-x
[session] add a new_cnx factory Having user-code importing cubicweb.server.session.Connection is inconvenient. We add a simple factory fonction on the session.

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