[PATCH 3 of 9 saem_ref] Fix remaining marks of the pre "cube-as-package" era

Sylvain Thenault sylvain.thenault at logilab.fr
Thu Mar 16 17:38:18 CET 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1489669846 -3600
#      Thu Mar 16 14:10:46 2017 +0100
# Node ID bc4dad70dfe6a7eb7101c0820093d93b12fedfb5
# Parent  9b723a1b21929aa0a6336c6d44df7260650ccca1
Fix remaining marks of the pre "cube-as-package" era

diff --git a/cubicweb_saem_ref/__pkginfo__.py b/cubicweb_saem_ref/__pkginfo__.py
--- a/cubicweb_saem_ref/__pkginfo__.py
+++ b/cubicweb_saem_ref/__pkginfo__.py
@@ -1,11 +1,11 @@
 # coding: utf-8
 # pylint: disable=W0622
 """cubicweb-saem-ref application packaging information"""
 
-modname = 'saem_ref'
 distname = 'cubicweb-saem-ref'
+modname = 'cubicweb_saem_ref'
 
 numversion = (0, 14, 2)
 version = '.'.join(str(num) for num in numversion)
 
 license = 'LGPL'
diff --git a/cubicweb_saem_ref/migration/0.12.0_Any.py b/cubicweb_saem_ref/migration/0.12.0_Any.py
--- a/cubicweb_saem_ref/migration/0.12.0_Any.py
+++ b/cubicweb_saem_ref/migration/0.12.0_Any.py
@@ -1,7 +1,7 @@
 from functools import partial
-from cubes.saem_ref import workflows
+from cubicweb_saem_ref import workflows
 
 sql = partial(sql, ask_confirm=False)
 
 for etype, cols in (('ProfileDocument', ('file_type_code',
                                          'document_type_code',
diff --git a/cubicweb_saem_ref/migration/0.13.0_Any.py b/cubicweb_saem_ref/migration/0.13.0_Any.py
--- a/cubicweb_saem_ref/migration/0.13.0_Any.py
+++ b/cubicweb_saem_ref/migration/0.13.0_Any.py
@@ -1,7 +1,7 @@
 from cubicweb_seda.dataimport import LCSV_FILES
-from cubes.saem_ref import workflows
+from cubicweb_saem_ref import workflows
 
 for etype in ('SEDAProfile', 'ProfileDocument', 'ProfileArchiveObject'):
     rql('DELETE %s X' % etype)
     commit()
 
diff --git a/cubicweb_saem_ref/migration/postcreate.py b/cubicweb_saem_ref/migration/postcreate.py
--- a/cubicweb_saem_ref/migration/postcreate.py
+++ b/cubicweb_saem_ref/migration/postcreate.py
@@ -15,11 +15,11 @@
 # You should have received a copy of the GNU Lesser General Public License along
 # with this program. If not, see <http://www.gnu.org/licenses/>.
 """cubicweb-saem-ref postcreate script"""
 
 from cubicweb import _
-from cubes.saem_ref import workflows
+from cubicweb_saem_ref import workflows
 
 
 set_property('ui.site-title', u'Référentiel SAEM')
 set_property('ui.language', u'fr')
 set_property('ui.date-format', u'%d/%m/%Y')


More information about the saem-devel mailing list