migration/create_recipes.py
author David Douard <david.douard@logilab.fr>
Thu, 13 Nov 2014 14:53:00 +0100
changeset 1751 56eb553a3618
parent 802 e08097e621ee
permissions -rw-r--r--
[recipes] update quick ans setup.distutils recipes

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