cubicweb/__main__.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 03 Feb 2016 11:13:51 +0100
changeset 11139 df928a3a94e3
parent 11099 5fdbf6f2db88
child 12253 9165f4b7426b
permissions -rwxr-xr-x
[dataimport] add a filter function to not fail if some extentity has several values for an attribute of final relation the function will simply record a warning in the import log and keep a value randomly. Notice the function has to be explicitly inserted in the transformation stream.
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:])