dcicutils 8.9.0.1b6__py3-none-any.whl → 8.9.0.1b8__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- dcicutils/portal_utils.py +1 -15
- {dcicutils-8.9.0.1b6.dist-info → dcicutils-8.9.0.1b8.dist-info}/METADATA +1 -1
- {dcicutils-8.9.0.1b6.dist-info → dcicutils-8.9.0.1b8.dist-info}/RECORD +6 -6
- {dcicutils-8.9.0.1b6.dist-info → dcicutils-8.9.0.1b8.dist-info}/LICENSE.txt +0 -0
- {dcicutils-8.9.0.1b6.dist-info → dcicutils-8.9.0.1b8.dist-info}/WHEEL +0 -0
- {dcicutils-8.9.0.1b6.dist-info → dcicutils-8.9.0.1b8.dist-info}/entry_points.txt +0 -0
dcicutils/portal_utils.py
CHANGED
@@ -17,7 +17,7 @@ from uuid import uuid4 as uuid
|
|
17
17
|
from webtest.app import TestApp, TestResponse
|
18
18
|
from wsgiref.simple_server import make_server as wsgi_make_server
|
19
19
|
from dcicutils.common import APP_SMAHT, OrchestratedApp, ORCHESTRATED_APPS
|
20
|
-
from dcicutils.ff_utils import
|
20
|
+
from dcicutils.ff_utils import get_metadata, get_schema, patch_metadata, post_metadata
|
21
21
|
from dcicutils.misc_utils import to_camel_case, VirtualApp
|
22
22
|
from dcicutils.schema_utils import get_identifying_properties
|
23
23
|
from dcicutils.tmpfile_utils import temporary_file
|
@@ -280,20 +280,6 @@ class Portal:
|
|
280
280
|
add_on="check_only=True" if check_only else "")
|
281
281
|
return self.post(f"/{object_type}{'?check_only=True' if check_only else ''}", data).json()
|
282
282
|
|
283
|
-
def delete_metadata(self, object_id: str) -> Optional[dict]:
|
284
|
-
if isinstance(object_id, str) and object_id:
|
285
|
-
if self.key:
|
286
|
-
return delete_metadata(obj_id=object_id, key=self.key)
|
287
|
-
else:
|
288
|
-
return self.patch_metadata(object_id, {"status": "deleted"})
|
289
|
-
return None
|
290
|
-
|
291
|
-
def purge_metadata(self, object_id: str) -> Optional[dict]:
|
292
|
-
if isinstance(object_id, str) and object_id:
|
293
|
-
if self.key:
|
294
|
-
return purge_metadata(obj_id=object_id, key=self.key)
|
295
|
-
return None
|
296
|
-
|
297
283
|
def get_health(self) -> OptionalResponse:
|
298
284
|
return self.get("/health")
|
299
285
|
|
@@ -48,7 +48,7 @@ dcicutils/misc_utils.py,sha256=-syqTAj8DESiiP_KHoyBv9VvfboFYB03QbBlmXnBZXw,10942
|
|
48
48
|
dcicutils/obfuscation_utils.py,sha256=fo2jOmDRC6xWpYX49u80bVNisqRRoPskFNX3ymFAmjw,5963
|
49
49
|
dcicutils/opensearch_utils.py,sha256=V2exmFYW8Xl2_pGFixF4I2Cc549Opwe4PhFi5twC0M8,1017
|
50
50
|
dcicutils/portal_object_utils.py,sha256=Az3n1aL-PQkN5gOFE6ZqC2XkYsqiwKlq7-tZggs1QN4,11062
|
51
|
-
dcicutils/portal_utils.py,sha256=
|
51
|
+
dcicutils/portal_utils.py,sha256=cDMaqEW3aSDwhjJlsaVS4yEpYsmWo6yVXnLA9f4J_JY,44621
|
52
52
|
dcicutils/progress_bar.py,sha256=UT7lxb-rVF_gp4yjY2Tg4eun1naaH__hB4_v3O85bcE,19468
|
53
53
|
dcicutils/project_utils.py,sha256=qPdCaFmWUVBJw4rw342iUytwdQC0P-XKpK4mhyIulMM,31250
|
54
54
|
dcicutils/qa_checkers.py,sha256=cdXjeL0jCDFDLT8VR8Px78aS10hwNISOO5G_Zv2TZ6M,20534
|
@@ -73,8 +73,8 @@ dcicutils/trace_utils.py,sha256=g8kwV4ebEy5kXW6oOrEAUsurBcCROvwtZqz9fczsGRE,1769
|
|
73
73
|
dcicutils/validation_utils.py,sha256=cMZIU2cY98FYtzK52z5WUYck7urH6JcqOuz9jkXpqzg,14797
|
74
74
|
dcicutils/variant_utils.py,sha256=2H9azNx3xAj-MySg-uZ2SFqbWs4kZvf61JnK6b-h4Qw,4343
|
75
75
|
dcicutils/zip_utils.py,sha256=_Y9EmL3D2dUZhxucxHvrtmmlbZmK4FpSsHEb7rGSJLU,3265
|
76
|
-
dcicutils-8.9.0.
|
77
|
-
dcicutils-8.9.0.
|
78
|
-
dcicutils-8.9.0.
|
79
|
-
dcicutils-8.9.0.
|
80
|
-
dcicutils-8.9.0.
|
76
|
+
dcicutils-8.9.0.1b8.dist-info/LICENSE.txt,sha256=qnwSmfnEWMl5l78VPDEzAmEbLVrRqQvfUQiHT0ehrOo,1102
|
77
|
+
dcicutils-8.9.0.1b8.dist-info/METADATA,sha256=fjU4SZWAmAycoQtk3BLsCDFM0ZpwcYDI7BSxo7ISo6A,3439
|
78
|
+
dcicutils-8.9.0.1b8.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
|
79
|
+
dcicutils-8.9.0.1b8.dist-info/entry_points.txt,sha256=51Q4F_2V10L0282W7HFjP4jdzW4K8lnWDARJQVFy_hw,270
|
80
|
+
dcicutils-8.9.0.1b8.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|