d
This commit is contained in:
@@ -148,7 +148,7 @@ extension MeetupId {
|
||||
ctrl.pipeValue(
|
||||
dbg: "testTUI",
|
||||
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
|
||||
},
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
def isNotKeyword(str):
|
||||
keywords = [
|
||||
"ex",
|
||||
"many",
|
||||
"recent",
|
||||
"set",
|
||||
"toggle",
|
||||
|
||||
@@ -4,9 +4,7 @@ def pipeBusSource(name, entity, busKey, structure, fmt):
|
||||
valueType = structure.model.fields[name][0]
|
||||
print(f"pipeBS-1 name: '{name}'")
|
||||
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 \
|
||||
.replace("%BUS_KEY%", busKey) \
|
||||
|
||||
@@ -15,6 +15,7 @@ def sectionGeneratedPipes(entity, sub, c):
|
||||
|
||||
for key in entity.pipes:
|
||||
values = entity.pipes[key]
|
||||
print(f"sectionGP-1 key/values: '{key}'/'{values}'")
|
||||
|
||||
# EX_NAME.
|
||||
firstLetter = key[:1].capitalize()
|
||||
@@ -30,8 +31,10 @@ def sectionGeneratedPipes(entity, sub, c):
|
||||
|
||||
# SRC.
|
||||
src = pipeSource(key, entity)
|
||||
print(f"sectionGP-2 key/src: '{key}'/'{src}'")
|
||||
# Bus.
|
||||
if src.startswith("K."):
|
||||
print(f"sectionGP-3 key: '{key}' bus")
|
||||
src = pipeBusSource(key, entity, src, c.structure, fmtBusPipe)
|
||||
|
||||
fmtPipe = pipeFormat(fmtExRecent, fmtMany, fmtRecent, fmtSet, fmtToggle, fmtToggleNil, key, entity)
|
||||
|
||||
Reference in New Issue
Block a user