cubicweb/misc/migration/3.15.0_common.py
author Nicolas Chauvat <nicolas.chauvat@logilab.fr>
Wed, 13 Mar 2019 00:01:35 +0100
changeset 12883 d5bbf030f967
parent 11057 0b59724cb3f2
permissions -rw-r--r--
[server/sources/native] refactor to remove useless injection

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