Skip to content

Commit 86d6548

Browse files
committed
missing method
1 parent c730bb5 commit 86d6548

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

dataikuapi/dss/utils.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,11 @@ def from_ref(context_project_key, ref):
8080
return AnyLoc(elts[0], elts[1])
8181
else:
8282
return AnyLoc(context_project_key, ref)
83+
84+
@staticmethod
85+
def from_full(ref):
86+
if ref.find(".") >= 0:
87+
elts = ref.split(".")
88+
return AnyLoc(elts[0], elts[1])
89+
else:
90+
raise Exception("Cannot parse object id, it's not a full id")

0 commit comments

Comments
 (0)