migration/create_recipes.py
author David Douard <david.douard@logilab.fr>
Fri, 14 Nov 2014 12:31:47 +0100
changeset 1776 f1a23fc56270
parent 802 e08097e621ee
permissions -rw-r--r--
[narval] lgp and pkginfo now lives in logilab-packaging And pkginfo is in fact mandatory for the python checkers. Also ensure lgp checkers are properly disabled if lgp is not found.

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