misc/migration/3.15.0_common.py
author Nicolas Chauvat <nicolas.chauvat@logilab.fr>
Thu, 23 Oct 2014 15:47:17 +0200
changeset 10107 1ef92a6193a8
parent 8410 eb6a607a0067
permissions -rw-r--r--
[serverctl] rename remove_cube to drop_cube (closes #4545093) For the sake of consistency, since commands are currently named: - add_{cube,entity,attribute,relation} - drop_{entity,attribute,relation} - remove_cube

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