misc/migration/3.13.0_Any.py
author Denis Laxalde <denis.laxalde@logilab.fr>
Thu, 11 Sep 2014 16:43:20 +0200
changeset 9976 457efde98629
parent 7921 a93e2ed5877a
permissions -rw-r--r--
[views] Display attributes in entity creation form based on "add" permission Previously, the "update" permission was used. Hence in case the latter is more restrictive that the "add" permission, an user may not be able to set such an attribute, despite she may have "add" permission on it. As a result of the change of permissions action in `editable_attributes` method (add/update depending on whether the entity is being created or modified), the "eid" attribute would have shown up in the edition form. To avoid this, it is moved in the "hidden" section (where it should arguably belong anyways). Closes #4342844.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7399
972ed1843bd8 [multi-sources] support for moving an entity from an external source (closes #343818)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     1
sync_schema_props_perms('cw_source', syncprops=False)
7542
86e9632a4e9c fix 3.13.0 migration script (closes #1766202)
Alexandre Fayolle <alexandre.fayolle@logilab.fr>
parents: 7460
diff changeset
     2
if schema['BigInt'].eid is None:
86e9632a4e9c fix 3.13.0 migration script (closes #1766202)
Alexandre Fayolle <alexandre.fayolle@logilab.fr>
parents: 7460
diff changeset
     3
    add_entity_type('BigInt')