cubicweb/misc/migration/3.22.1_Any.py
author Florent Cayré <florent.cayre@logilab.fr>
Thu, 02 Feb 2017 14:58:39 +0100
branch3.24
changeset 11949 1372d9f80c70
parent 11129 97095348b3ee
permissions -rw-r--r--
[js] Fix loading image URL

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