migration/create_recipes.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 21 Oct 2010 18:01:10 +0200
changeset 716 448d9fb3ae71
parent 549 7f4faf2a2057
child 802 e08097e621ee
permissions -rw-r--r--
#1347584: when used as a tracker extension, should grant staff group the right to add/update repositories

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 "package", Y name "apycot.recipe.debian"')
rql('SET X use_recipe Y WHERE X name "full", Y name "apycot.recipe.full"')

commit()