cubicweb/misc/migration/3.22.1_Any.py
author Laura Médioni <laura.medioni@logilab.fr>
Mon, 17 Mar 2014 15:21:47 +0100
changeset 11187 5213dfe9cddb
parent 11129 97095348b3ee
permissions -rw-r--r--
Enables css customization in CalendarView now a custom css class can be set on the calendar div (closes #3654043).

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