elody 0.0.188__tar.gz → 0.0.189__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. {elody-0.0.188 → elody-0.0.189}/PKG-INFO +3 -2
  2. {elody-0.0.188 → elody-0.0.189}/pyproject.toml +1 -1
  3. {elody-0.0.188 → elody-0.0.189}/src/elody/csv.py +4 -3
  4. {elody-0.0.188 → elody-0.0.189}/src/elody.egg-info/PKG-INFO +3 -2
  5. {elody-0.0.188 → elody-0.0.189}/LICENSE +0 -0
  6. {elody-0.0.188 → elody-0.0.189}/README.md +0 -0
  7. {elody-0.0.188 → elody-0.0.189}/setup.cfg +0 -0
  8. {elody-0.0.188 → elody-0.0.189}/src/__init__.py +0 -0
  9. {elody-0.0.188 → elody-0.0.189}/src/elody/__init__.py +0 -0
  10. {elody-0.0.188 → elody-0.0.189}/src/elody/client.py +0 -0
  11. {elody-0.0.188 → elody-0.0.189}/src/elody/error_codes.py +0 -0
  12. {elody-0.0.188 → elody-0.0.189}/src/elody/exceptions.py +0 -0
  13. {elody-0.0.188 → elody-0.0.189}/src/elody/job.py +0 -0
  14. {elody-0.0.188 → elody-0.0.189}/src/elody/loader.py +0 -0
  15. {elody-0.0.188 → elody-0.0.189}/src/elody/migration/__init__.py +0 -0
  16. {elody-0.0.188 → elody-0.0.189}/src/elody/migration/base_object_migrator.py +0 -0
  17. {elody-0.0.188 → elody-0.0.189}/src/elody/object_configurations/__init__.py +0 -0
  18. {elody-0.0.188 → elody-0.0.189}/src/elody/object_configurations/base_object_configuration.py +0 -0
  19. {elody-0.0.188 → elody-0.0.189}/src/elody/object_configurations/elody_configuration.py +0 -0
  20. {elody-0.0.188 → elody-0.0.189}/src/elody/object_configurations/job_configuration.py +0 -0
  21. {elody-0.0.188 → elody-0.0.189}/src/elody/policies/__init__.py +0 -0
  22. {elody-0.0.188 → elody-0.0.189}/src/elody/policies/authentication/__init__.py +0 -0
  23. {elody-0.0.188 → elody-0.0.189}/src/elody/policies/authentication/base_user_tenant_validation_policy.py +0 -0
  24. {elody-0.0.188 → elody-0.0.189}/src/elody/policies/authentication/multi_tenant_policy.py +0 -0
  25. {elody-0.0.188 → elody-0.0.189}/src/elody/policies/authorization/__init__.py +0 -0
  26. {elody-0.0.188 → elody-0.0.189}/src/elody/policies/authorization/filter_generic_objects_policy.py +0 -0
  27. {elody-0.0.188 → elody-0.0.189}/src/elody/policies/authorization/filter_generic_objects_policy_v2.py +0 -0
  28. {elody-0.0.188 → elody-0.0.189}/src/elody/policies/authorization/generic_object_detail_policy.py +0 -0
  29. {elody-0.0.188 → elody-0.0.189}/src/elody/policies/authorization/generic_object_mediafiles_policy.py +0 -0
  30. {elody-0.0.188 → elody-0.0.189}/src/elody/policies/authorization/generic_object_metadata_policy.py +0 -0
  31. {elody-0.0.188 → elody-0.0.189}/src/elody/policies/authorization/generic_object_relations_policy.py +0 -0
  32. {elody-0.0.188 → elody-0.0.189}/src/elody/policies/authorization/generic_object_request_policy.py +0 -0
  33. {elody-0.0.188 → elody-0.0.189}/src/elody/policies/authorization/generic_object_request_policy_v2.py +0 -0
  34. {elody-0.0.188 → elody-0.0.189}/src/elody/policies/authorization/mediafile_derivatives_policy.py +0 -0
  35. {elody-0.0.188 → elody-0.0.189}/src/elody/policies/authorization/mediafile_download_policy.py +0 -0
  36. {elody-0.0.188 → elody-0.0.189}/src/elody/policies/authorization/multi_tenant_policy.py +0 -0
  37. {elody-0.0.188 → elody-0.0.189}/src/elody/policies/authorization/tenant_request_policy.py +0 -0
  38. {elody-0.0.188 → elody-0.0.189}/src/elody/policies/helpers.py +0 -0
  39. {elody-0.0.188 → elody-0.0.189}/src/elody/policies/permission_handler.py +0 -0
  40. {elody-0.0.188 → elody-0.0.189}/src/elody/policies/tenant_id_resolver.py +0 -0
  41. {elody-0.0.188 → elody-0.0.189}/src/elody/schemas.py +0 -0
  42. {elody-0.0.188 → elody-0.0.189}/src/elody/util.py +0 -0
  43. {elody-0.0.188 → elody-0.0.189}/src/elody/validator.py +0 -0
  44. {elody-0.0.188 → elody-0.0.189}/src/elody.egg-info/SOURCES.txt +0 -0
  45. {elody-0.0.188 → elody-0.0.189}/src/elody.egg-info/dependency_links.txt +0 -0
  46. {elody-0.0.188 → elody-0.0.189}/src/elody.egg-info/requires.txt +0 -0
  47. {elody-0.0.188 → elody-0.0.189}/src/elody.egg-info/top_level.txt +0 -0
  48. {elody-0.0.188 → elody-0.0.189}/src/tests/__init_.py +0 -0
  49. {elody-0.0.188 → elody-0.0.189}/src/tests/data.py +0 -0
  50. {elody-0.0.188 → elody-0.0.189}/src/tests/unit/__init__.py +0 -0
  51. {elody-0.0.188 → elody-0.0.189}/src/tests/unit/test_csv.py +0 -0
  52. {elody-0.0.188 → elody-0.0.189}/src/tests/unit/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: elody
3
- Version: 0.0.188
3
+ Version: 0.0.189
4
4
  Summary: elody SDK for Python
5
5
  Author-email: Inuits <developers@inuits.eu>
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -369,6 +369,7 @@ Requires-Dist: six>=1.16.0; extra == "loader"
369
369
  Requires-Dist: tzlocal>=5.2; extra == "loader"
370
370
  Provides-Extra: util
371
371
  Requires-Dist: cloudevents>=1.9.0; extra == "util"
372
+ Dynamic: license-file
372
373
 
373
374
  # elody SDK for Python
374
375
 
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "elody"
9
- version = "0.0.188"
9
+ version = "0.0.189"
10
10
  description = "elody SDK for Python"
11
11
  readme = "README.md"
12
12
  authors = [{ name = "Inuits", email = "developers@inuits.eu" }]
@@ -270,6 +270,7 @@ class CSVMultiObject(CSVParser):
270
270
  for key, value in row.items():
271
271
  if not value:
272
272
  continue
273
+ original_value = value
273
274
  if key != identifying_column:
274
275
  value = value.lower()
275
276
  if key == "file_source":
@@ -301,7 +302,7 @@ class CSVMultiObject(CSVParser):
301
302
  elif key in self.top_level_fields and self.__field_allowed(
302
303
  type, key, value
303
304
  ):
304
- indexed_dict[type][id][key] = value
305
+ indexed_dict[type][id][key] = original_value
305
306
  elif (
306
307
  key not in self.index_mapping.values()
307
308
  or self.include_indexed_field
@@ -312,7 +313,7 @@ class CSVMultiObject(CSVParser):
312
313
  indexed_dict[type][id].setdefault("metadata", list())
313
314
  options = metadata_info.get("value_options")
314
315
  if self.is_datetime(value):
315
- value = self.parse_datetime(value)
316
+ original_value = self.parse_datetime(value)
316
317
  if options and value not in options:
317
318
  if "invalid_value" not in self.get_errors():
318
319
  self.set_error("invalid_value", list())
@@ -320,7 +321,7 @@ class CSVMultiObject(CSVParser):
320
321
  self.get_errors()["invalid_value"].append(message)
321
322
 
322
323
  indexed_dict[type][id]["metadata"].append(
323
- self._get_metadata_object(metadata_key, value, lang)
324
+ self._get_metadata_object(metadata_key, original_value, lang)
324
325
  )
325
326
  self.__validate_indexed_dict(indexed_dict)
326
327
  self.__add_required_fields(indexed_dict)
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: elody
3
- Version: 0.0.188
3
+ Version: 0.0.189
4
4
  Summary: elody SDK for Python
5
5
  Author-email: Inuits <developers@inuits.eu>
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -369,6 +369,7 @@ Requires-Dist: six>=1.16.0; extra == "loader"
369
369
  Requires-Dist: tzlocal>=5.2; extra == "loader"
370
370
  Provides-Extra: util
371
371
  Requires-Dist: cloudevents>=1.9.0; extra == "util"
372
+ Dynamic: license-file
372
373
 
373
374
  # elody SDK for Python
374
375
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes