misc/migration/3.22.1_Any.py
author David Douard <david.douard@logilab.fr>
Fri, 19 Feb 2016 12:11:31 +0100
changeset 11338 dde85a5d47fc
parent 11104 269317987dc6
permissions -rw-r--r--
[book] improve a bit the documentation of the database setup also remove the MySQL section.

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