misc/migration/3.15.0_common.py
author Pierre-Yves David <pierre-yves.david@logilab.fr>
Tue, 23 Apr 2013 16:25:56 +0200
changeset 8902 9edfa3660bf4
parent 8410 eb6a607a0067
permissions -rw-r--r--
[ldap] quieter tests Capture slapadd and slapd output if everything goes well.

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