misc/migration/3.22.1_Any.py
author David Douard <david.douard@logilab.fr>
Wed, 25 May 2016 17:43:53 +0200
changeset 11262 25f9a76ddf50
parent 11104 269317987dc6
permissions -rw-r--r--
[test] add a test to ensure we get an AuthenticationError with ldapfeed when using (correct login, wrong password) credentials

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