migration/create_recipes.py
author Julien Cristau <julien.cristau@logilab.fr>
Wed, 21 Dec 2011 17:51:38 +0100
branchstable
changeset 802 e08097e621ee
parent 549 7f4faf2a2057
permissions -rw-r--r--
Drop debian package recipes (closes #2122154) They're Logilab-specific, better maintained elsewhere.

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