misc/migration/3.15.0_common.py
author David Douard <david.douard@logilab.fr>
Thu, 17 Jan 2013 14:55:07 +0100
changeset 8751 1a97d46701e7
parent 8410 eb6a607a0067
permissions -rw-r--r--
add the match_http_method predicate (closes #2559932) This aim at creating views which are selected on other HTTP methods (PUT, DELETE, ...)

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