Working resolver integration with buildSelect3 exception
This commit is contained in:
+26
-4
@@ -1,4 +1,4 @@
|
||||
def buildPath(path, outputs):
|
||||
def buildPath(path, outputs, resolved):
|
||||
if isinstance(path, str):
|
||||
return path
|
||||
|
||||
@@ -6,9 +6,10 @@ def buildPath(path, outputs):
|
||||
|
||||
for part in path:
|
||||
if isinstance(part, dict):
|
||||
value = outputs[part["output"]][part["keys"]]
|
||||
|
||||
|
||||
for key, val in part.items():
|
||||
#value = outputs[part["output"]][part["keys"]]
|
||||
value = outputs[val]
|
||||
#print("DEBUG path", value)
|
||||
|
||||
#for key in part.get("keys", []):
|
||||
#value = value[key]
|
||||
@@ -16,5 +17,26 @@ def buildPath(path, outputs):
|
||||
result += str(value)
|
||||
else:
|
||||
result += part
|
||||
#print(result)
|
||||
return result
|
||||
|
||||
def buildPath2(path, outputs, resolved):
|
||||
if isinstance(path, str):
|
||||
return path
|
||||
|
||||
result = ""
|
||||
|
||||
for part in path:
|
||||
if isinstance(part, dict):
|
||||
#value = outputs[part["output"]][part["keys"]]
|
||||
value = outputs["path"]
|
||||
#print("DEBUG path", value)
|
||||
|
||||
#for key in part.get("keys", []):
|
||||
#value = value[key]
|
||||
|
||||
result += str(value)
|
||||
else:
|
||||
result += part
|
||||
#print(result)
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user