misc/migration/3.15.0_common.py
author Vincent Michel <vincent.michel@logilab.fr>
Tue, 10 Apr 2012 17:09:04 +0200
changeset 8352 0e3b41118631
parent 8306 4da49700b06a
child 8357 8b16593abd85
permissions -rw-r--r--
[dbapi] add possibility to connect to a remote ZMQRepository (closes #2290126)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8306
4da49700b06a [config, undo] Fix undo-support option migration
Anthony Truchet <anthony.truchet@logilab.fr>
parents:
diff changeset
     1
undo_actions = config.cfgfile_parser.get('MAIN', 'undo-support', False)
4da49700b06a [config, undo] Fix undo-support option migration
Anthony Truchet <anthony.truchet@logilab.fr>
parents:
diff changeset
     2
config.global_set_option('undo-enabled', bool(undo_actions))
8352
0e3b41118631 [dbapi] add possibility to connect to a remote ZMQRepository (closes #2290126)
Vincent Michel <vincent.michel@logilab.fr>
parents: 8306
diff changeset
     3
pyro_actions = config.cfgfile_parser.get('REMOTE', 'pyro', False)
0e3b41118631 [dbapi] add possibility to connect to a remote ZMQRepository (closes #2290126)
Vincent Michel <vincent.michel@logilab.fr>
parents: 8306
diff changeset
     4
if pyro_actions:
0e3b41118631 [dbapi] add possibility to connect to a remote ZMQRepository (closes #2290126)
Vincent Michel <vincent.michel@logilab.fr>
parents: 8306
diff changeset
     5
    config.global_set_option('repo-uri', 'pyro://')