migration/create_recipes.py
author Julien Cristau <julien.cristau@logilab.fr>
Fri, 06 Jun 2014 14:10:19 +0200
changeset 1531 613f39518d8f
parent 802 e08097e621ee
permissions -rw-r--r--
[lgp] refresh log in the lgp log handler (closes #4002751) Should give us more progress information while things are building.

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