misc/migration/3.15.0_common.py
author Alain Begey <alain@unlish.com>
Mon, 14 Apr 2014 23:00:19 +0200
changeset 9717 a6834e2dcc1b
parent 8410 eb6a607a0067
permissions -rw-r--r--
[forms] Add autocomplete attribute for formrenderers If you set form.autocomplete = False, the form renderer in the open form tag will add the html option 'autocomplete=off'. It allows to disable the functionality of some browsers to fill in some forms automatically (for instance a profile with login/password) Closes #3747294

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