d
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from generation.isNotKeyword import *
|
||||
|
||||
def pipeSource(name, entity, structure):
|
||||
def pipeSource(name, entity):
|
||||
props = entity.pipes[name]
|
||||
if "vm" in props:
|
||||
return "core.vm." + name
|
||||
@@ -14,11 +14,6 @@ def pipeSource(name, entity, structure):
|
||||
# Прямое обращение к VM.
|
||||
if src.startswith("vm."):
|
||||
src = "core." + src
|
||||
# Обращение к константе шины.
|
||||
elif src.startswith("K."):
|
||||
busKey = src
|
||||
busValueType = structure.model.fields[name][0]
|
||||
src = "Bus.events.compactMap { Bus.convertKeyValue(" + busKey + ", $0) }.map { (k: String, v: " + busValueType + ") in v }"
|
||||
# Значение по умолчанию.
|
||||
elif src == default:
|
||||
return default + "." + name
|
||||
|
||||
Reference in New Issue
Block a user