From a0a4a4cded621e4f45ebed27b69fcf5e250c5e45 Mon Sep 17 00:00:00 2001 From: Lyncoln Date: Mon, 26 Oct 2026 09:29:54 -0400 Subject: [PATCH] Removed outdated recursive handling in actions --- core/execution/action/action.py | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/core/execution/action/action.py b/core/execution/action/action.py index 88d8ab4..a695b5f 100644 --- a/core/execution/action/action.py +++ b/core/execution/action/action.py @@ -4,30 +4,12 @@ from core.runtime.runtimecontract import buildRuntimeAttr, buildPreRuntimeAttr def buildAction (action, outputs): - #if hasattr(action, "recursive"): - # recursiveresponses = [] - # items = outputs[action.recursive["source"]] - # reverse = action.recursive.get("reverse", False) - # - # if reverse: - # items = reversed(items) - - # for item in items: - # outputs[action.recursive["label"]] = item - # outputs, resolved, match, filter = buildPreRuntimeAttr(action, outputs) - - # if match: - # continue - - # response, outputs = executeRequest(action, outputs, resolved) - # recursiveresponses.append(response) - # outputs, response = buildRuntimeAttr(action, outputs, resolved, response) - - # return outputs, recursiveresponses - - #else: outputs, resolved, match, filter = buildPreRuntimeAttr(action, outputs) + if hasattr(action, "allowaction"): + if not action.allowaction: + return outputs, resolved + if match: return outputs, resolved