[cwconfig] remove unused method
Not to be confused with serverconfig.migration_handler.
--- a/cwconfig.py Tue Aug 19 00:16:02 2014 +0200
+++ b/cwconfig.py Wed Jul 09 15:50:23 2014 +0200
@@ -1184,11 +1184,6 @@
print 'warning: ignoring specified sources, requires a repository '\
'configuration'
- def migration_handler(self):
- """return a migration handler instance"""
- from cubicweb.migration import MigrationHelper
- return MigrationHelper(self, verbosity=self.verbosity)
-
def i18ncompile(self, langs=None):
from cubicweb import i18n
if langs is None:
--- a/test/unittest_migration.py Tue Aug 19 00:16:02 2014 +0200
+++ b/test/unittest_migration.py Wed Jul 09 15:50:23 2014 +0200
@@ -1,4 +1,4 @@
-# copyright 2003-2013 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# copyright 2003-2014 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# This file is part of CubicWeb.
@@ -76,8 +76,6 @@
def test_filter_scripts_for_mode(self):
config = CubicWebConfiguration('data')
config.verbosity = 0
- self.assertNotIsInstance(config.migration_handler(), ServerMigrationHelper)
- self.assertIsInstance(config.migration_handler(), MigrationHelper)
config = self.config
config.__class__.name = 'repository'
self.assertListEqual(filter_scripts(config, TMIGRDIR, (0,0,4), (0,1,0)),