cubicweb/__main__.py
author Denis Laxalde <denis.laxalde@logilab.fr>
Thu, 27 Jun 2019 12:20:22 +0200
branch3.26
changeset 12677 9f03df82f8de
parent 12253 9165f4b7426b
permissions -rwxr-xr-x
[autoform] Fix display_fields handling This follows-up on changeset b2ceb483e056 (present in 3.25 as well), in which AutomaticEntityForm.editable_attributes() was turned into a generator. In this method, in case display_fields is not None, we previously returned a list of (rtype, role); this was changed into a yield, but the change was missing a return after the loop in order not to go through the remainder of the function. Add tests for editable_attributes() method.
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
12253
9165f4b7426b Set a default value for arguments of cubicweb.cwctl:run()
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11099
diff changeset
     3
run()