migration/create_recipes.py
author David Douard <david.douard@logilab.fr>
Sun, 26 Oct 2014 18:28:22 +0100
changeset 1766 42e60f760703
parent 802 e08097e621ee
permissions -rw-r--r--
[checkers] rationalize the way project path is configured in checkers Generalize the use of the 'project_path' (mandatry) option in checkers

from cubes.apycot import recipes

rql('DELETE Recipe R', ask_confirm=False)

for recipe in dir(recipes):
    if recipe.startswith('create_'):
        print recipe
        getattr(recipes, recipe)(session)

# define new recipes for current test config
rql('SET X use_recipe Y WHERE X name "quick", Y name "apycot.recipe.quick"')
rql('SET X use_recipe Y WHERE X name "full", Y name "apycot.recipe.full"')

commit()