elody 0.0.175__py3-none-any.whl → 0.0.177__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/policies/authorization/filter_generic_objects_policy.py +1 -1
- elody/policies/authorization/filter_generic_objects_policy_v2.py +6 -2
- elody/policies/authorization/generic_object_detail_policy.py +1 -1
- elody/policies/authorization/generic_object_mediafiles_policy.py +1 -1
- elody/policies/authorization/generic_object_metadata_policy.py +1 -1
- elody/policies/authorization/generic_object_relations_policy.py +1 -1
- elody/policies/authorization/generic_object_request_policy.py +1 -1
- elody/policies/authorization/generic_object_request_policy_v2.py +1 -1
- elody/policies/authorization/mediafile_derivatives_policy.py +1 -1
- elody/policies/authorization/mediafile_download_policy.py +1 -1
- elody/util.py +2 -1
- {elody-0.0.175.dist-info → elody-0.0.177.dist-info}/METADATA +1 -1
- {elody-0.0.175.dist-info → elody-0.0.177.dist-info}/RECORD +16 -16
- {elody-0.0.175.dist-info → elody-0.0.177.dist-info}/LICENSE +0 -0
- {elody-0.0.175.dist-info → elody-0.0.177.dist-info}/WHEEL +0 -0
- {elody-0.0.175.dist-info → elody-0.0.177.dist-info}/top_level.txt +0 -0
|
@@ -42,7 +42,7 @@ class FilterGenericObjectsPolicy(BaseAuthorizationPolicy):
|
|
|
42
42
|
access_verdict = rule().apply(
|
|
43
43
|
type_filter["value"], user_context, request, permissions
|
|
44
44
|
)
|
|
45
|
-
if access_verdict
|
|
45
|
+
if access_verdict is not None:
|
|
46
46
|
policy_context.access_verdict = access_verdict
|
|
47
47
|
if not policy_context.access_verdict:
|
|
48
48
|
break
|
|
@@ -42,9 +42,13 @@ class FilterGenericObjectsPolicyV2(BaseAuthorizationPolicy):
|
|
|
42
42
|
access_verdict = None
|
|
43
43
|
for rule in rules:
|
|
44
44
|
access_verdict = rule().apply(
|
|
45
|
-
type_filter["value"],
|
|
45
|
+
deepcopy(type_filter["value"]),
|
|
46
|
+
filters,
|
|
47
|
+
user_context,
|
|
48
|
+
request,
|
|
49
|
+
permissions,
|
|
46
50
|
)
|
|
47
|
-
if access_verdict
|
|
51
|
+
if access_verdict is not None:
|
|
48
52
|
policy_context.access_verdict = access_verdict
|
|
49
53
|
if not policy_context.access_verdict:
|
|
50
54
|
break
|
|
@@ -40,7 +40,7 @@ class GenericObjectDetailPolicy(BaseAuthorizationPolicy):
|
|
|
40
40
|
access_verdict = None
|
|
41
41
|
for rule in rules:
|
|
42
42
|
access_verdict = rule().apply(item, user_context, request, permissions)
|
|
43
|
-
if access_verdict
|
|
43
|
+
if access_verdict is not None:
|
|
44
44
|
policy_context.access_verdict = access_verdict
|
|
45
45
|
if not policy_context.access_verdict:
|
|
46
46
|
break
|
|
@@ -51,7 +51,7 @@ class GenericObjectMediafilesPolicy(BaseAuthorizationPolicy):
|
|
|
51
51
|
access_verdict = None
|
|
52
52
|
for rule in rules:
|
|
53
53
|
access_verdict = rule().apply(item, user_context, request, permissions)
|
|
54
|
-
if access_verdict
|
|
54
|
+
if access_verdict is not None:
|
|
55
55
|
policy_context.access_verdict = access_verdict
|
|
56
56
|
if not policy_context.access_verdict:
|
|
57
57
|
break
|
|
@@ -34,7 +34,7 @@ class GenericObjectMetadataPolicy(BaseAuthorizationPolicy):
|
|
|
34
34
|
access_verdict = None
|
|
35
35
|
for rule in rules:
|
|
36
36
|
access_verdict = rule().apply(item, user_context, request, permissions)
|
|
37
|
-
if access_verdict
|
|
37
|
+
if access_verdict is not None:
|
|
38
38
|
policy_context.access_verdict = access_verdict
|
|
39
39
|
if not policy_context.access_verdict:
|
|
40
40
|
break
|
|
@@ -40,7 +40,7 @@ class GenericObjectRelationsPolicy(BaseAuthorizationPolicy):
|
|
|
40
40
|
access_verdict = None
|
|
41
41
|
for rule in rules:
|
|
42
42
|
access_verdict = rule().apply(item, user_context, request, permissions)
|
|
43
|
-
if access_verdict
|
|
43
|
+
if access_verdict is not None:
|
|
44
44
|
policy_context.access_verdict = access_verdict
|
|
45
45
|
if not policy_context.access_verdict:
|
|
46
46
|
break
|
|
@@ -35,7 +35,7 @@ class GenericObjectRequestPolicy(BaseAuthorizationPolicy):
|
|
|
35
35
|
access_verdict = None
|
|
36
36
|
for rule in rules:
|
|
37
37
|
access_verdict = rule().apply(user_context, request, permissions)
|
|
38
|
-
if access_verdict
|
|
38
|
+
if access_verdict is not None:
|
|
39
39
|
policy_context.access_verdict = access_verdict
|
|
40
40
|
if not policy_context.access_verdict:
|
|
41
41
|
break
|
|
@@ -34,7 +34,7 @@ class GenericObjectRequestPolicyV2(BaseAuthorizationPolicy):
|
|
|
34
34
|
access_verdict = None
|
|
35
35
|
for rule in rules:
|
|
36
36
|
access_verdict = rule().apply(user_context, request, permissions)
|
|
37
|
-
if access_verdict
|
|
37
|
+
if access_verdict is not None:
|
|
38
38
|
policy_context.access_verdict = access_verdict
|
|
39
39
|
if not policy_context.access_verdict:
|
|
40
40
|
break
|
|
@@ -51,7 +51,7 @@ class MediafileDerivativesPolicy(BaseAuthorizationPolicy):
|
|
|
51
51
|
access_verdict = None
|
|
52
52
|
for rule in rules:
|
|
53
53
|
access_verdict = rule().apply(item, user_context, request, permissions)
|
|
54
|
-
if access_verdict
|
|
54
|
+
if access_verdict is not None:
|
|
55
55
|
policy_context.access_verdict = access_verdict
|
|
56
56
|
if not policy_context.access_verdict:
|
|
57
57
|
break
|
|
@@ -50,7 +50,7 @@ class MediafileDownloadPolicy(BaseAuthorizationPolicy):
|
|
|
50
50
|
access_verdict = None
|
|
51
51
|
for rule in rules:
|
|
52
52
|
access_verdict = rule().apply(item, user_context, request, permissions)
|
|
53
|
-
if access_verdict
|
|
53
|
+
if access_verdict is not None:
|
|
54
54
|
policy_context.access_verdict = access_verdict
|
|
55
55
|
if not policy_context.access_verdict:
|
|
56
56
|
break
|
elody/util.py
CHANGED
|
@@ -223,10 +223,11 @@ def signal_edge_changed(mq_client, parent_ids_from_changed_edges):
|
|
|
223
223
|
send_cloudevent(mq_client, "dams", "dams.edge_changed", data)
|
|
224
224
|
|
|
225
225
|
|
|
226
|
-
def signal_entity_changed(mq_client, entity):
|
|
226
|
+
def signal_entity_changed(mq_client, entity, unchanged_entity=None):
|
|
227
227
|
data = {
|
|
228
228
|
"location": f"/entities/{get_raw_id(entity)}",
|
|
229
229
|
"type": entity.get("type", "unspecified"),
|
|
230
|
+
"unchanged_entity": unchanged_entity,
|
|
230
231
|
}
|
|
231
232
|
send_cloudevent(mq_client, "dams", "dams.entity_changed", data)
|
|
232
233
|
|
|
@@ -7,7 +7,7 @@ elody/exceptions.py,sha256=5KSw2sPCZz3lDIJX4LiR2iL9n4m4KIil04D1d3X5rd0,968
|
|
|
7
7
|
elody/job.py,sha256=wpq1dSxYxMv1Jv1hSvyxvFI1qNbRkDNghRLhndo57rU,3923
|
|
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=3tqzRmeff3rZhvU1ceurzw06tHhSIc3h2v1IvVoPjFo,8753
|
|
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
|
|
@@ -23,16 +23,16 @@ elody/policies/authentication/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5N
|
|
|
23
23
|
elody/policies/authentication/base_user_tenant_validation_policy.py,sha256=fxvrB4iG6fehBh6b4XS8AWewtNsCABgSooma5ljjZk4,5144
|
|
24
24
|
elody/policies/authentication/multi_tenant_policy.py,sha256=jmV1RTsApt2IV8BgSRcfnIjWHhDtFjW4OHJgWNUDKRw,3822
|
|
25
25
|
elody/policies/authorization/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
26
|
-
elody/policies/authorization/filter_generic_objects_policy.py,sha256=
|
|
27
|
-
elody/policies/authorization/filter_generic_objects_policy_v2.py,sha256=
|
|
28
|
-
elody/policies/authorization/generic_object_detail_policy.py,sha256=
|
|
29
|
-
elody/policies/authorization/generic_object_mediafiles_policy.py,sha256=
|
|
30
|
-
elody/policies/authorization/generic_object_metadata_policy.py,sha256=
|
|
31
|
-
elody/policies/authorization/generic_object_relations_policy.py,sha256=
|
|
32
|
-
elody/policies/authorization/generic_object_request_policy.py,sha256=
|
|
33
|
-
elody/policies/authorization/generic_object_request_policy_v2.py,sha256=
|
|
34
|
-
elody/policies/authorization/mediafile_derivatives_policy.py,sha256
|
|
35
|
-
elody/policies/authorization/mediafile_download_policy.py,sha256=
|
|
26
|
+
elody/policies/authorization/filter_generic_objects_policy.py,sha256=mF32moh8hRetBgG8vQW-rz4xjoRQD2yOxdI740SFSUo,6522
|
|
27
|
+
elody/policies/authorization/filter_generic_objects_policy_v2.py,sha256=AUnnJpevVP7_XT7jbpt0KDJx5X96H12JKrWOkG3C-uE,6451
|
|
28
|
+
elody/policies/authorization/generic_object_detail_policy.py,sha256=DjF_cByl6oyyEncocczx5DJUjSkSwsWjQ45-2JtKobk,3554
|
|
29
|
+
elody/policies/authorization/generic_object_mediafiles_policy.py,sha256=1-DMsV-FDkcrQCE4KL-SGlVHjTZSMPwYq1bWln2nXE4,2887
|
|
30
|
+
elody/policies/authorization/generic_object_metadata_policy.py,sha256=xwtOVYmiCKgf75CydfWnV7DLI9X1yVfXPQ4-Ux0Htqk,2787
|
|
31
|
+
elody/policies/authorization/generic_object_relations_policy.py,sha256=hRLeA5gXB44ufiVVaxWtAuwnXBRY1U4bLWgIadzKtmw,3712
|
|
32
|
+
elody/policies/authorization/generic_object_request_policy.py,sha256=kuLczjnK5omMF2Gw5ViY_Z9MNPx_w6bNwexiMzvLiUU,4867
|
|
33
|
+
elody/policies/authorization/generic_object_request_policy_v2.py,sha256=zaoCdV7KVAcMYNNXHYTi8Vtjkw_E8_w8aMqxJ62QqBE,5099
|
|
34
|
+
elody/policies/authorization/mediafile_derivatives_policy.py,sha256=0JHg0gsj7pdHsGyS5ksIPYatowBjNEgyiqCU2MtV6TU,3165
|
|
35
|
+
elody/policies/authorization/mediafile_download_policy.py,sha256=I9j-w_CrfC1vJ9AqJetKQW9ebs0zur-Wfshrb_cN8vU,2535
|
|
36
36
|
elody/policies/authorization/multi_tenant_policy.py,sha256=SA9H7SBjzuh8mY3gYN7pDG8TV7hdI3GEUtNeiZeNL3M,3164
|
|
37
37
|
elody/policies/authorization/tenant_request_policy.py,sha256=dEgblwRAqwWVcE-O7Jn8hVL3OnwDlQhDEOcPlcElBrk,1185
|
|
38
38
|
tests/__init_.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -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.177.dist-info/LICENSE,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
|
|
44
|
+
elody-0.0.177.dist-info/METADATA,sha256=XKT6US19rLl15m3KTJkM_yt3gCFfTGJM-kk_x1YMw6k,23336
|
|
45
|
+
elody-0.0.177.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
46
|
+
elody-0.0.177.dist-info/top_level.txt,sha256=E0mImupLj0KmtUUCXRYEoLDRaSkuiGaOIIseAa0oQ-M,21
|
|
47
|
+
elody-0.0.177.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|