[ldapfeed] use LDAP_SCOPES to find user-scope
We already have LDAP_SCOPES dict defining possible scopes, this avoid possible code injection from config...
Thus we can drop global variables already defined in LDAP_SCOPES since they are not used directly 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'))