elody 0.0.180__py3-none-any.whl → 0.0.182__py3-none-any.whl
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.
- elody/error_codes.py +1 -1
- elody/util.py +12 -0
- {elody-0.0.180.dist-info → elody-0.0.182.dist-info}/METADATA +1 -1
- {elody-0.0.180.dist-info → elody-0.0.182.dist-info}/RECORD +7 -7
- {elody-0.0.180.dist-info → elody-0.0.182.dist-info}/LICENSE +0 -0
- {elody-0.0.180.dist-info → elody-0.0.182.dist-info}/WHEEL +0 -0
- {elody-0.0.180.dist-info → elody-0.0.182.dist-info}/top_level.txt +0 -0
elody/error_codes.py
CHANGED
|
@@ -53,7 +53,7 @@ class ErrorCode(Enum):
|
|
|
53
53
|
TICKET_NOT_FOUND = ("4006", [])
|
|
54
54
|
TICKET_EXPIRED = ("4007", [])
|
|
55
55
|
PROVIDE_MEDIAFILE_ID_OR_TICKET_ID = ("4008", [])
|
|
56
|
-
DUPLICATE_FILE = ("4009", [])
|
|
56
|
+
DUPLICATE_FILE = ("4009", ["existing_file"])
|
|
57
57
|
NO_BUCKET_SPECIFIED = ("4010", [])
|
|
58
58
|
|
|
59
59
|
# Validation error codes
|
elody/util.py
CHANGED
|
@@ -270,3 +270,15 @@ def signal_update_copyright_color_mediafile(mq_client, mediafile_id):
|
|
|
270
270
|
def signal_upload_file(mq_client, upload_links, selected_folder):
|
|
271
271
|
data = {"upload_links": upload_links, "selected_folder": selected_folder}
|
|
272
272
|
send_cloudevent(mq_client, "dams", "dams.upload_file", data)
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
def signal_upload_external_mediafile(
|
|
276
|
+
mq_client, external_url, mediafile, ticket_id, job_id
|
|
277
|
+
):
|
|
278
|
+
data = {
|
|
279
|
+
"external_url": external_url,
|
|
280
|
+
"mediafile": mediafile,
|
|
281
|
+
"ticket_id": ticket_id,
|
|
282
|
+
"job_id": job_id,
|
|
283
|
+
}
|
|
284
|
+
send_cloudevent(mq_client, "dams", "dams.upload_external_mediafile", data)
|
|
@@ -2,12 +2,12 @@ __init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
2
2
|
elody/__init__.py,sha256=d0Q6Fn44e7wFfLabDOBxpcJ1DPKWlFunGYDUBmO-4hA,22
|
|
3
3
|
elody/client.py,sha256=VFjUUaE9edtK1XuAF5T3ayem2UEBr-Anww8AhITYLdI,8575
|
|
4
4
|
elody/csv.py,sha256=7ZTqwmB4CQzqN3ddoaTOKPgFHpk2UyJte-oN2994dIg,15911
|
|
5
|
-
elody/error_codes.py,sha256=
|
|
5
|
+
elody/error_codes.py,sha256=LZ4SRV2SCC1e1z9zgVD9y3p45kq8iZpsJcqLcyKznz0,4194
|
|
6
6
|
elody/exceptions.py,sha256=5KSw2sPCZz3lDIJX4LiR2iL9n4m4KIil04D1d3X5rd0,968
|
|
7
7
|
elody/job.py,sha256=0nBCxupyxpVO-aqLd7yekgR0SsREkuON-30i0VdArAs,4216
|
|
8
8
|
elody/loader.py,sha256=Mr7zyP5DP5psYerf2-DnP90GiqtFlKZpcLIPD7P4pSU,5242
|
|
9
9
|
elody/schemas.py,sha256=WtKdZEAX-PtEuAaRohyS3Md8H4-8yKVXMkHfCQ2SDR4,4676
|
|
10
|
-
elody/util.py,sha256=
|
|
10
|
+
elody/util.py,sha256=QqcqkV7GZ_1p4Uf_GJnc_nfAJt0mkBGzQ7-wCxMJ1ZM,9080
|
|
11
11
|
elody/validator.py,sha256=G7Ya538EJHCFzOxEri2OcFMabfLBCtTKxuf4os_KuNw,260
|
|
12
12
|
elody/migration/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
13
|
elody/migration/base_object_migrator.py,sha256=n8uvgGfjEUy60G47RD7Y-oxp1vHLOauwPMDl87LcxtU,436
|
|
@@ -40,8 +40,8 @@ tests/data.py,sha256=Q3oxduf-E3m-Z5G_p3fcs8jVy6g10I7zXKL1m94UVMI,2906
|
|
|
40
40
|
tests/unit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
41
41
|
tests/unit/test_csv.py,sha256=NQaOhehfQ4GuXku0Y1SA8DYjJeqqidbF50zEHAi8RZA,15923
|
|
42
42
|
tests/unit/test_utils.py,sha256=g63szcEZyHhCOtrW4BnNbcgVca3oYPIOLjBdIzNwwN0,8784
|
|
43
|
-
elody-0.0.
|
|
44
|
-
elody-0.0.
|
|
45
|
-
elody-0.0.
|
|
46
|
-
elody-0.0.
|
|
47
|
-
elody-0.0.
|
|
43
|
+
elody-0.0.182.dist-info/LICENSE,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
|
|
44
|
+
elody-0.0.182.dist-info/METADATA,sha256=VabnJt25XNrYZpUnLlZabgkEXK3XETFIk0BaXhSKfU0,23336
|
|
45
|
+
elody-0.0.182.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
46
|
+
elody-0.0.182.dist-info/top_level.txt,sha256=E0mImupLj0KmtUUCXRYEoLDRaSkuiGaOIIseAa0oQ-M,21
|
|
47
|
+
elody-0.0.182.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|