equal
deleted
inserted
replaced
1 # copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
1 # copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
3 # |
3 # |
4 # This file is part of CubicWeb. |
4 # This file is part of CubicWeb. |
5 # |
5 # |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
341 from logilab.common.textutils import splitstrip |
341 from logilab.common.textutils import splitstrip |
342 configname = self.config.config |
342 configname = self.config.config |
343 cubes, appid = args |
343 cubes, appid = args |
344 cubes = splitstrip(cubes) |
344 cubes = splitstrip(cubes) |
345 # get the configuration and helper |
345 # get the configuration and helper |
346 config = cwcfg.config_for(appid, configname) |
346 config = cwcfg.config_for(appid, configname, creating=True) |
347 config.set_language = False |
|
348 cubes = config.expand_cubes(cubes) |
347 cubes = config.expand_cubes(cubes) |
349 config.init_cubes(cubes) |
348 config.init_cubes(cubes) |
350 helper = self.config_helper(config) |
349 helper = self.config_helper(config) |
351 # check the cube exists |
350 # check the cube exists |
352 try: |
351 try: |