cubicweb/misc/migration/3.21.1_Any.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 10 Mar 2017 18:04:25 +0100
changeset 12044 70bb46dfa87b
parent 11057 0b59724cb3f2
permissions -rw-r--r--
[repo] Drop repo.new_session method we should not go through Session to create Connection anymore. This is unofficial API, no backward compat for now.
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)