Михаил Капелько 11 months ago
parent
commit
00a9a25997
4 changed files with 6 additions and 4 deletions
  1. +1
    -1
      Modules/MeetupIdX/src/MeetupId.Generated.swift
  2. +1
    -0
      Utilities/platform/2/generation/isNotKeyword.py
  3. +1
    -3
      Utilities/platform/2/generation/pipeBusSource.py
  4. +3
    -0
      Utilities/platform/2/generation/sectionGeneratedPipes.py

+ 1
- 1
Modules/MeetupIdX/src/MeetupId.Generated.swift View File

@@ -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
- 0
Utilities/platform/2/generation/isNotKeyword.py View File

@@ -1,6 +1,7 @@
def isNotKeyword(str):
keywords = [
"ex",
"many",
"recent",
"set",
"toggle",


+ 1
- 3
Utilities/platform/2/generation/pipeBusSource.py View File

@@ -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) \


+ 3
- 0
Utilities/platform/2/generation/sectionGeneratedPipes.py View File

@@ -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)


Loading…
Cancel
Save