@@ -148,7 +148,7 @@ extension MeetupId { | |||||
ctrl.pipeValue( | ctrl.pipeValue( | ||||
dbg: "testTUI", | dbg: "testTUI", | ||||
sub: nil, | sub: nil, | ||||
many.eraseToAnyPublisher(), | |||||
Bus.events.compactMap { Bus.convertKeyValue(K.testTextUI, $0) }.map { (k: String, v: MPAK.Many<String>) in v }.eraseToAnyPublisher(), | |||||
{ | { | ||||
$0.testTextUI = $1 | $0.testTextUI = $1 | ||||
}, | }, | ||||
@@ -1,6 +1,7 @@ | |||||
def isNotKeyword(str): | def isNotKeyword(str): | ||||
keywords = [ | keywords = [ | ||||
"ex", | "ex", | ||||
"many", | |||||
"recent", | "recent", | ||||
"set", | "set", | ||||
"toggle", | "toggle", | ||||
@@ -4,9 +4,7 @@ def pipeBusSource(name, entity, busKey, structure, fmt): | |||||
valueType = structure.model.fields[name][0] | valueType = structure.model.fields[name][0] | ||||
print(f"pipeBS-1 name: '{name}'") | print(f"pipeBS-1 name: '{name}'") | ||||
if isPipeMany(name, entity): | if isPipeMany(name, entity): | ||||
itemType = structure.model.fields[key][0] | |||||
valueType = f"MPAK.Many<{itemType}>" | |||||
print(f"pipeBS-2 name: '{name}'") | |||||
valueType = f"MPAK.Many<{valueType}>" | |||||
return fmt \ | return fmt \ | ||||
.replace("%BUS_KEY%", busKey) \ | .replace("%BUS_KEY%", busKey) \ | ||||
@@ -15,6 +15,7 @@ def sectionGeneratedPipes(entity, sub, c): | |||||
for key in entity.pipes: | for key in entity.pipes: | ||||
values = entity.pipes[key] | values = entity.pipes[key] | ||||
print(f"sectionGP-1 key/values: '{key}'/'{values}'") | |||||
# EX_NAME. | # EX_NAME. | ||||
firstLetter = key[:1].capitalize() | firstLetter = key[:1].capitalize() | ||||
@@ -30,8 +31,10 @@ def sectionGeneratedPipes(entity, sub, c): | |||||
# SRC. | # SRC. | ||||
src = pipeSource(key, entity) | src = pipeSource(key, entity) | ||||
print(f"sectionGP-2 key/src: '{key}'/'{src}'") | |||||
# Bus. | # Bus. | ||||
if src.startswith("K."): | if src.startswith("K."): | ||||
print(f"sectionGP-3 key: '{key}' bus") | |||||
src = pipeBusSource(key, entity, src, c.structure, fmtBusPipe) | src = pipeBusSource(key, entity, src, c.structure, fmtBusPipe) | ||||
fmtPipe = pipeFormat(fmtExRecent, fmtMany, fmtRecent, fmtSet, fmtToggle, fmtToggleNil, key, entity) | fmtPipe = pipeFormat(fmtExRecent, fmtMany, fmtRecent, fmtSet, fmtToggle, fmtToggleNil, key, entity) | ||||