[PATCH 10 of 14 skos] Use MetadataGenerator instead of deprecated MetaGenerator

Denis Laxalde denis.laxalde at logilab.fr
Mon Feb 19 12:28:01 CET 2018


# HG changeset patch
# User Denis Laxalde <denis.laxalde at logilab.fr>
# Date 1519036755 -3600
#      Mon Feb 19 11:39:15 2018 +0100
# Node ID 60f8c89415f9a4efb81b484a94df086ab91c1a8e
# Parent  0256cb3dc9a1c75511c61a07ed830f486004eca8
Use MetadataGenerator instead of deprecated MetaGenerator

Related to #17133718.

diff --git a/sobjects.py b/sobjects.py
--- a/sobjects.py
+++ b/sobjects.py
@@ -215,7 +215,7 @@ def import_skos_extentities(cnx, entitie
     # metagenerator to properly set the source for created entities
     if store is None:
         if metagenerator is None:
-            metagenerator = dataimport.MetaGenerator(cnx, source=source)
+            metagenerator = dataimport.MetadataGenerator(cnx, source=source)
         store = dataimport.NoHookRQLObjectStore(cnx, metagenerator)
     else:
         assert metagenerator is None, 'you should not give both a store and a metadata generator'



More information about the saem-devel mailing list