cubicweb/misc/migration/3.15.0_common.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 03 Nov 2017 15:26:04 +0100
changeset 12238 6ed86e0b0222
parent 11057 0b59724cb3f2
permissions -rw-r--r--
[test] Stop using lgc.testlib in unittest_migractions

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