cubicweb/misc/migration/3.15.0_common.py
author Florent Cayré <florent.cayre@logilab.fr>
Thu, 02 Feb 2017 14:58:39 +0100
branch3.24
changeset 11949 1372d9f80c70
parent 11057 0b59724cb3f2
permissions -rw-r--r--
[js] Fix loading image URL

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