cubicweb/misc/migration/3.22.1_Any.py
author Denis Laxalde <denis.laxalde@logilab.fr>
Wed, 29 Jun 2016 11:06:25 +0200
branch3.23
changeset 11394 f0188639e544
parent 11129 97095348b3ee
permissions -rw-r--r--
[debian] Adjust symlink to cubicweb package so that documention builds fine Broken since source tree re-organization.

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