cubicweb/misc/migration/3.22.1_Any.py
author Laurent Peuch <cortex@worlddomination.be>
Wed, 18 Dec 2019 05:45:37 +0100
changeset 12812 00749d83a672
parent 11129 97095348b3ee
permissions -rw-r--r--
[doc] set_/free_cnxset method doesn't exist anymore

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