misc/migration/3.15.0_common.py
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Fri, 18 Oct 2013 16:58:48 +0200
changeset 9302 af36f459d2f0
parent 8410 eb6a607a0067
permissions -rw-r--r--
[server] deprecate the old multi-source system It is removed in 3.19. Closes #2919299

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))