[PATCH 1 of 2 seda] [migration] Fix dumb error in 0.11 migration

Sylvain Thenault sylvain.thenault at logilab.fr
Wed Dec 6 15:03:51 CET 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1512552166 -3600
#      Wed Dec 06 10:22:46 2017 +0100
# Node ID 1a8d43a9547b00797a8ec07dd71893a15695283e
# Parent  09d4339eaab2c99ec60b79e9f50bd61fb47b97e7
[migration] Fix dumb error in 0.11 migration

duh.

diff --git a/cubicweb_seda/migration/0.11.0_Any.py b/cubicweb_seda/migration/0.11.0_Any.py
--- a/cubicweb_seda/migration/0.11.0_Any.py
+++ b/cubicweb_seda/migration/0.11.0_Any.py
@@ -4,12 +4,13 @@ from cubicweb_seda.dataimport import LCS
 # please close your eyes - this is necessary if seda is used by saem else call
 # to import_seda_schemes will fail because it will attempt to reuse and existing
 # uri. Should be done there but still easier here.
 try:
     from cubicweb_saem_ref.site_cubicweb import init_seda_scheme
+    init_seda_scheme.func_defaults[0][0] = len(LCSV_FILES) - 1
 except ImportError:
-    init_seda_scheme.func_defaults[0][0] = len(LCSV_FILES) - 1
+    pass
 
 print('filtering language concepts, this will take a while')
 
 seda_02_langs = set((
     'aa', 'ab', 'af', 'ak', 'am', 'ar', 'an', 'as', 'av', 'ae', 'ay', 'az',


More information about the saem-devel mailing list