oarepo-runtime 1.4.2__py3-none-any.whl → 1.4.4__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -53,8 +53,9 @@ def load(
53
53
  def error_callback(entry: StreamEntry):
54
54
  pprint(entry.entry)
55
55
  for err in entry.errors:
56
- print(err.type)
56
+ print(err.code)
57
57
  print(err.message)
58
+ print(err.info)
58
59
 
59
60
  else:
60
61
  error_callback = None
@@ -6,6 +6,7 @@ from typing import Dict
6
6
  import pkg_resources
7
7
  import yaml
8
8
  from flask import current_app
9
+ from invenio_db import db
9
10
  from invenio_records_resources.proxies import current_service_registry
10
11
 
11
12
  from oarepo_runtime.datastreams import DataStream, DataStreamCatalogue, DataStreamResult
@@ -132,6 +133,7 @@ def _load_fixtures_from_catalogue(
132
133
  uow_class=uow_class,
133
134
  )
134
135
  result.add(stream_name, datastream.process())
136
+ db.session.commit()
135
137
 
136
138
 
137
139
  def dump_fixtures(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: oarepo-runtime
3
- Version: 1.4.2
3
+ Version: 1.4.4
4
4
  Summary: A set of runtime extensions of Invenio repository
5
5
  Description-Content-Type: text/markdown
6
6
  License-File: LICENSE
@@ -20,11 +20,11 @@ oarepo_runtime/config/service.py,sha256=IDDEQJ3LWYBLTFhE_8jPXiinIDNDY52fI0zigDJ_
20
20
  oarepo_runtime/datastreams/__init__.py,sha256=bscO2zTYf1eEppYx74b54-fcb2wz7YUDjGupqafuFc0,724
21
21
  oarepo_runtime/datastreams/batch.py,sha256=Xe0kXZigDeHU6Sjvo7w4_zjas8lShc2aTJpaAAQ3Iq0,551
22
22
  oarepo_runtime/datastreams/catalogue.py,sha256=TQjH7-qSrKhPEeq-7Q6OxmgGzvlsyrheVQbT_O4fwT8,5393
23
- oarepo_runtime/datastreams/cli.py,sha256=rats49mrlKwCAHPc-5795syRRghe6pJLsebSUPdO_-Y,2943
23
+ oarepo_runtime/datastreams/cli.py,sha256=heeXcbjqsC7HXK1HKNdkj25qISqdqXBsJQKFLpYhFDA,2975
24
24
  oarepo_runtime/datastreams/config.py,sha256=ALq7otBFMHjT3GV59KpkEV-8ZborWrYLXyB3v5-nFGE,1083
25
25
  oarepo_runtime/datastreams/datastreams.py,sha256=yzvyE8UzO3GUtaZOPHcIts8x0BPnLGIPjYH-JTCiU3g,8177
26
26
  oarepo_runtime/datastreams/errors.py,sha256=ZcwAsmczSTtHXljyDSrgqGhYD7td9rTLXZJvPjr72pA,1627
27
- oarepo_runtime/datastreams/fixtures.py,sha256=EcXv1i5LPtSPWETOcXksm5RRJmeceteVBonrCtHfaws,6950
27
+ oarepo_runtime/datastreams/fixtures.py,sha256=_pQLKUCoat2J0IjTeitIqEYIpiOGWtxxLMS4KiSU-Rs,7000
28
28
  oarepo_runtime/datastreams/transformers.py,sha256=4COh2cza_n2GKnTM2yJkj9-8KkPK2E1fcyRoUH4S2OY,1204
29
29
  oarepo_runtime/datastreams/utils.py,sha256=KGuY60SUkq1HnIGinL_RhmWiM51HVlccxTomCUiGB58,394
30
30
  oarepo_runtime/datastreams/readers/__init__.py,sha256=thzuY28bweX89J66VDb7jtjVx7IOJKTXGd72GGZQBkY,1089
@@ -80,9 +80,9 @@ oarepo_runtime/utils/path.py,sha256=V1NVyk3m12_YLbj7QHYvUpE1wScO78bYsX1LOLeXDkI,
80
80
  oarepo_runtime/validation/__init__.py,sha256=lU7DgZq8pGD5Pa-QqL9gvLsib3IYtM-Y56k-NwHrPG0,166
81
81
  oarepo_runtime/validation/dates.py,sha256=fahqKGDdIYWux5ZeoljrEe8VD2fDZR9VpfvYmTYAmpw,1050
82
82
  tests/pkg_data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
83
- oarepo_runtime-1.4.2.dist-info/LICENSE,sha256=h2uWz0OaB3EN-J1ImdGJZzc7yvfQjvHVYdUhQ-H7ypY,1064
84
- oarepo_runtime-1.4.2.dist-info/METADATA,sha256=opzMUZaaefuJ0ysJkNnNQtOA8QyOjeEHRaXxWW87Ri4,2694
85
- oarepo_runtime-1.4.2.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
86
- oarepo_runtime-1.4.2.dist-info/entry_points.txt,sha256=C32W4eT-8OypMCfwOO5WREioVKSneDfY51D78Uvdbp0,231
87
- oarepo_runtime-1.4.2.dist-info/top_level.txt,sha256=bHhlkT1_RQC4IkfTQCqA3iN4KCB6cSFQlsXpQMSP-bE,21
88
- oarepo_runtime-1.4.2.dist-info/RECORD,,
83
+ oarepo_runtime-1.4.4.dist-info/LICENSE,sha256=h2uWz0OaB3EN-J1ImdGJZzc7yvfQjvHVYdUhQ-H7ypY,1064
84
+ oarepo_runtime-1.4.4.dist-info/METADATA,sha256=LU2TYx23EA8qBbeGJr1mjtDd4hueMPOrhphaAzMsAa0,2694
85
+ oarepo_runtime-1.4.4.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
86
+ oarepo_runtime-1.4.4.dist-info/entry_points.txt,sha256=C32W4eT-8OypMCfwOO5WREioVKSneDfY51D78Uvdbp0,231
87
+ oarepo_runtime-1.4.4.dist-info/top_level.txt,sha256=bHhlkT1_RQC4IkfTQCqA3iN4KCB6cSFQlsXpQMSP-bE,21
88
+ oarepo_runtime-1.4.4.dist-info/RECORD,,