misc/migration/3.15.0_common.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 07 Apr 2014 12:03:31 +0200
changeset 9711 59616edc20d7
parent 8410 eb6a607a0067
permissions -rw-r--r--
[schema] fix buggy composite_rdef_roles and associated test it should only look at rdefs involving the considered entity type. Closes #3712982

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