1. 29 Oct, 2018 1 commit
  2. 09 Oct, 2018 2 commits
  3. 27 Sep, 2018 1 commit
  4. 20 Feb, 2018 4 commits
  5. 19 Feb, 2018 15 commits
  6. 13 Feb, 2018 3 commits
  7. 05 Feb, 2018 2 commits
  8. 26 Jan, 2018 2 commits
  9. 08 Jan, 2018 3 commits
    • Denis Laxalde's avatar
      Pass command "config" to dataimport store factory functions · 2d545f396263
      Denis Laxalde authored
      This will be useful in cubicweb-saem_ref to specify parameters for the
      metadata generator through an extra command option.
    • Denis Laxalde's avatar
      Require a pre-existing concept scheme for LCSV command line import · 092344f78877
      Denis Laxalde authored
      Instead of creating a dummy concept scheme from the file name, we now
      require a pre-existing concept scheme's URI to be passed as a --scheme
      argument when running an LCSV import from the command line. This matches
      with the web UI behavior and makes it easier to integrate downstream
      with cubicweb-saem_ref as this application has a custom handling of ARK
      identifier which we could assign to the concept scheme previously
      created during import.
      We move the "Importing Skos dataset" down a bit because we may fail
      earlier if the --scheme option is not specified and having this message
      displayed is meaningless in such cases.
      Related to Extranet #44146518.
    • Denis Laxalde's avatar
      Get "repo" from the Connection object directly · 056d3154cbe0
      Denis Laxalde authored
      It's clearer this way as it does not give the impression that we need to
      use the object return by Connection.__enter__().
  10. 18 Dec, 2017 2 commits
  11. 29 Nov, 2017 3 commits
    • Denis Laxalde's avatar
      Handle LCSV format in "skos-import" command · 3daaef1b665b
      Denis Laxalde authored
      We add a --format option to "skos-import" ccplugin command with values
      being "rdf" or "lcsv".
      The lcsv format import behaves a bit differently than RDF import:
      * only on file is accepted,
      * a concept scheme is created beforehand to hold concepts to be imported
        from the LCSV file,
      * this scheme is eventually dropped in case of import failure or
      * since lcsv_extentities() accepts a file object, we have to handle file
        opening and closing ourselves, hence the extentities_generator()
        wrapper function.
      Closes extranet #37463080.
    • Denis Laxalde's avatar
      Possibly check the value of stdout in ccplugin tests · c39e8b4e1da6
      Denis Laxalde authored
      We handle a keyword argument 'stdout_check' in run_import_skos() test
      helper and use its value to compare with process stdout. This will be
      used in the next changeset.
    • Denis Laxalde's avatar
      Handle errors in 'skos-import' command · b416ffb23a2c
      Denis Laxalde authored
      We handle errors from import code as well as user interruption. This is
      mostly in preparation of the next changeset in which we'll add some
      cleanup logic.
  12. 28 Nov, 2017 2 commits