cubicweb/migration.py
changeset 12508 a8c1ea390400
parent 11767 432f87a63057
child 12520 c53f66bcc641
equal deleted inserted replaced
12507:211472ab15c8 12508:a8c1ea390400
    33 from logilab.common import IGNORED_EXTENSIONS
    33 from logilab.common import IGNORED_EXTENSIONS
    34 from logilab.common.decorators import cached
    34 from logilab.common.decorators import cached
    35 from logilab.common.configuration import REQUIRED, read_old_config
    35 from logilab.common.configuration import REQUIRED, read_old_config
    36 from logilab.common.shellutils import ASK
    36 from logilab.common.shellutils import ASK
    37 from logilab.common.changelog import Version
    37 from logilab.common.changelog import Version
    38 from logilab.common.deprecation import deprecated
       
    39 
    38 
    40 from cubicweb import ConfigurationError, ExecutionError
    39 from cubicweb import ConfigurationError, ExecutionError
    41 from cubicweb.cwconfig import CubicWebConfiguration as cwcfg
    40 from cubicweb.cwconfig import CubicWebConfiguration as cwcfg
    42 from cubicweb.toolsutils import show_diffs
    41 from cubicweb.toolsutils import show_diffs
    43 
    42 
   413                     if not p in origcubes]
   412                     if not p in origcubes]
   414         if newcubes:
   413         if newcubes:
   415             self.config.add_cubes(newcubes)
   414             self.config.add_cubes(newcubes)
   416         return newcubes
   415         return newcubes
   417 
   416 
   418     @deprecated('[3.20] use drop_cube() instead of remove_cube()')
       
   419     def cmd_remove_cube(self, cube, removedeps=False):
       
   420         return self.cmd_drop_cube(cube, removedeps)
       
   421 
       
   422     def cmd_drop_cube(self, cube, removedeps=False):
   417     def cmd_drop_cube(self, cube, removedeps=False):
   423         if removedeps:
   418         if removedeps:
   424             toremove = self.config.expand_cubes([cube])
   419             toremove = self.config.expand_cubes([cube])
   425         else:
   420         else:
   426             toremove = (cube,)
   421             toremove = (cube,)