from core.apirequest import executeRequest from core.runtime.runtimecontract import buildRuntimeAttr, buildPreRuntimeAttr def buildAction (action, outputs): outputs, resolved, match, filter = buildPreRuntimeAttr(action, outputs) if hasattr(action, "allowaction"): if not action.allowaction: return outputs, resolved if match: return outputs, resolved response, outputs = executeRequest(action, outputs, resolved) outputs, response = buildRuntimeAttr(action, outputs, resolved, response) return outputs, response