misc/migration/3.15.0_common.py
author Rémi Cardona <remi.cardona@logilab.fr>
Wed, 13 Mar 2013 19:23:22 +0100
branchstable
changeset 8729 ea3fc8e1edee
parent 8410 eb6a607a0067
permissions -rw-r--r--
[web/component] Use global variable to point to ajax controller (part of #2758254)

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