misc/migration/3.21.1_Any.py
author Rabah Meradi <rabah.meradi@logilab.fr>
Tue, 15 Dec 2015 08:55:58 +0100
changeset 10973 0939ad2edf63
parent 10553 1d824df4f2bd
permissions -rw-r--r--
[adapters] Use an adapter for serializing entities to a bare python structure which may be used for e.g. JSON export or other and allow to have different serializations for each entity types. Closes #6378035
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10553
1d824df4f2bd Fix (de)serialization of ComputedRelation read permissions
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff changeset
     1
# re-read ComputedRelation permissions from schema.py now that we're
1d824df4f2bd Fix (de)serialization of ComputedRelation read permissions
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff changeset
     2
# able to serialize them
1d824df4f2bd Fix (de)serialization of ComputedRelation read permissions
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff changeset
     3
for computedrtype in schema.iter_computed_relations():
1d824df4f2bd Fix (de)serialization of ComputedRelation read permissions
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff changeset
     4
    sync_schema_props_perms(computedrtype.type)