misc/migration/3.15.0_common.py
author Denis Laxalde <denis.laxalde@logilab.fr>
Mon, 27 Jan 2014 14:02:21 +0100 (2014-01-27)
changeset 9660 a78efec4cf04
parent 8410 eb6a607a0067
permissions -rw-r--r--
Add missing relation types items in schema global variables Some of these global variables are used, in particular, to control schema views (web/views/schema.py). While they are currently not properly documented (see #3360868), their definition are currently incomplete (e.g. one could reasonably expect to find ``cw_schema`` in ``SYSTEM_RTYPES``). Closes #3486114.
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))