cubicweb/misc/migration/3.22.1_Any.py
author Elodie Thieblin <ethieblin@logilab.fr>
Wed, 18 Mar 2020 09:22:45 +0100
changeset 12921 1adf23942954
parent 11129 97095348b3ee
permissions -rw-r--r--
[doc] Add requirement for gettext and graphviz When running the tutorial from scratch, I had errors because these two packages were not installed.

from os import unlink
from os.path import isfile, join
from cubicweb.cwconfig import CubicWebConfiguration as cwcfg

regdir = cwcfg.instances_dir()

if isfile(join(regdir, 'startorder')):
    if confirm('The startorder file is not used anymore in Cubicweb 3.22. '
               'Should I delete it?',
               shell=False, pdb=False):
        unlink(join(regdir, 'startorder'))