misc/migration/3.15.0_common.py
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Fri, 13 Mar 2015 14:10:40 +0100
changeset 10236 ef3059a692cb
parent 8410 eb6a607a0067
permissions -rw-r--r--
Remove the remote repository-access-through-zmq support Modern methods such as the rqlcontroller cube + the cwclientlib library are the way forward. Closes #2919297.

import ConfigParser
try:
    undo_actions = config.cfgfile_parser.get('MAIN', 'undo-support', False)
except ConfigParser.NoOptionError:
    pass # this conf. file was probably already migrated
else:
    config.global_set_option('undo-enabled', bool(undo_actions))