misc/migration/3.15.0_common.py
author David Douard <david.douard@logilab.fr>
Fri, 30 Nov 2012 21:18:05 +0100
branchstable
changeset 8606 0163bd9f4880
parent 8410 eb6a607a0067
permissions -rw-r--r--
prepare 3.15.6

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