bin/cubicweb-ctl
author Julien Cristau <julien.cristau@logilab.fr>
Wed, 06 Jan 2016 15:27:59 +0100
changeset 11079 eba98431f705
parent 0 b97547f5f1fa
child 12253 9165f4b7426b
permissions -rwxr-xr-x
[devtools] "fix" boundary condition for autofill maxvalue in an IntervalBoundConstraint is inclusive. If the min and max values happened to coincide, we would call random.choice on an empty list, which it didn't like. This is still broken in the case of BoundaryConstraint('>', minvalue), as we assume the minvalue is in the range, but that's something for another time.

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