misc/migration/3.5.3_Any.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 21 Jan 2013 18:01:25 +0100
changeset 8669 62213a34726e
parent 3666 7d0f6234b001
child 8798 cdab3aadc679
permissions -rw-r--r--
[db-api/configuration] simplify db-api and configuration so that all the connection information is in the repository url, closes #2521848 eg no more specific option of pyro ns host, group, etc. This also fixes broken ZMQ sources. Changes: * dropped pyro-ns-host, pyro-instance-id, pyro-ns-group from client side config, in favor of repository-uri. No migration done, supposing there is **no web-only config** in the wild. Also stop discovering the connection method through the repo_method class attribute of the configuration, varying according to the configuration class. This is a first step on the way to a simpler configuration handling. Notice those pyro options are still available for repository only / all-in-one configurations as they are needed to configure the pyro server. * stop telling connection method using ConnectionProperties, this is so boring. Also, drop _cnxtype from Connection and cnxtype from Session. The former is replaced by a is_repo_in_memory property and the later is totaly useless. * deprecate in_memory_cnx which becomes useless, use _repo_connect instead
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3611
8d7d4a67820f [migration] fix 3.5.3_Any.py for migrations starting from before 3.5
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents: 3528
diff changeset
     1
# type attribute might already be there if migrating from
8d7d4a67820f [migration] fix 3.5.3_Any.py for migrations starting from before 3.5
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents: 3528
diff changeset
     2
# version < 3.5 to version >= 3.5.3, BaseTransition being added
8d7d4a67820f [migration] fix 3.5.3_Any.py for migrations starting from before 3.5
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents: 3528
diff changeset
     3
# in bootstrap_migration
3666
7d0f6234b001 fix migration script
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 3612
diff changeset
     4
if versions_map['cubicweb'][0] >= (3, 5, 0):
3611
8d7d4a67820f [migration] fix 3.5.3_Any.py for migrations starting from before 3.5
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents: 3528
diff changeset
     5
    add_attribute('BaseTransition', 'type')
3612
0605d8755613 [migration] make it more explicit that BaseTransition upgrade should only be done if migrating from version prior to 3.5
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents: 3611
diff changeset
     6
    sync_schema_props_perms('state_of')
0605d8755613 [migration] make it more explicit that BaseTransition upgrade should only be done if migrating from version prior to 3.5
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents: 3611
diff changeset
     7
    sync_schema_props_perms('transition_of')