cubicweb/misc/migration/3.22.1_Any.py
author Arthur Lutz <arthur.lutz@logilab.fr>
Fri, 31 Jan 2020 17:07:25 +0100
branch3.27
changeset 12862 87b00a0cc64d
parent 11129 97095348b3ee
permissions -rw-r--r--
[doc/book/admin] initial version of deploy cubicweb page in documentation

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