bin/cubicweb-ctl
author Philippe Pepiot <philippe.pepiot@logilab.fr>
Mon, 11 Mar 2019 17:43:23 +0100
changeset 12512 661dd0436c01
parent 12253 9165f4b7426b
child 12779 44147dab9d27
permissions -rwxr-xr-x
[schema] drop monkeypatch "name_for" on BaseConstraint BaseConstraint doesn't have "name_for" method, this is just an addition for cubicweb needs. Implement this as a function instead of a monkeypatch to avoid having "name_for" not defined because cubicweb.schema hasn't been imported. In particular this fix running cubicweb/server/test/unittest_schema2sql.py::SQLSchemaTC::test_known_values alone.

#!/usr/bin/env python
from cubicweb.cwctl import run
run()