[PATCH 1 of 5 saem_ref v2] Drop "rql" store from choices of "skos-import" command

Philippe Pepiot philippe.pepiot at logilab.fr
Tue Jan 16 11:36:57 CET 2018


On 08/01/2018, Denis Laxalde wrote:
> # HG changeset patch
> # User Denis Laxalde <denis.laxalde at logilab.fr>
> # Date 1515402660 -3600
> #      Mon Jan 08 10:11:00 2018 +0100
> # Node ID 0140f2679535d889a3919194ba9253962cf83648
> # Parent  fa989ea49877a4ce8d59b8ba9035b8e45c508ee7
> # EXP-Topic lcsv-skos-import
> Drop "rql" store from choices of "skos-import" command
> 
> RQLObjectStore is not supported in saem_ref because it cannot handle a
> metadata generator which is needed in saem_ref to generate ARK
> identifiers.
> 
> diff --git a/cubicweb_saem_ref/__init__.py b/cubicweb_saem_ref/__init__.py
> --- a/cubicweb_saem_ref/__init__.py
> +++ b/cubicweb_saem_ref/__init__.py
> @@ -73,6 +73,6 @@ def _massive_store_factory(cnx, **kwargs
>  
>  
>  def _nohook_store_factory(cnx):
> -    from cubicweb.dataimport.stores import NoHooRQLObjectStore
> +    from cubicweb.dataimport.stores import NoHookRQLObjectStore
>      from .sobjects import SAEMMetadataGenerator
> -    return NoHooRQLObjectStore(cnx, metagen=SAEMMetadataGenerator(cnx))
> +    return NoHookRQLObjectStore(cnx, metagen=SAEMMetadataGenerator(cnx))

This was an ImportError ? O_o


More information about the saem-devel mailing list