migration/create_recipes.py
author David Douard <david.douard@logilab.fr>
Thu, 21 May 2015 18:08:58 +0200
changeset 1818 b99983186da6
parent 802 e08097e621ee
permissions -rw-r--r--
Added tag apycot-version-3.2.2, apycot-debian-version-3.2.2-1, 3.2.2, debian/3.2.2-1 for changeset 3c65c9e316bc

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