This commit is contained in:
Михаил Капелько
2023-12-28 18:30:31 +03:00
parent 56c897bb9e
commit 4dbbcfdc22
5 changed files with 25 additions and 29 deletions

View File

@@ -4,8 +4,8 @@ from generation.pipeFormat import *
from generation.pipeSource import *
def sectionGeneratedPipes(entity, sub, c):
fmtBusPipe = c.readFile(f"{c.dir}/templates/section-generated-bus-pipe")
fmtBusPipeToggle = c.readFile(f"{c.dir}/templates/section-generated-bus-pipe-toggle")
fmtBusPipe = c.readFile(f"{c.dir}/templates/section-generated-pipe-src-bus")[0]
fmtBusPipeToggle = c.readFile(f"{c.dir}/templates/section-generated-pipe-src-bus-toggle")[0]
fmtExRecent = c.readFile(f"{c.dir}/templates/section-generated-pipe-ex-recent")
fmtRecent = c.readFile(f"{c.dir}/templates/section-generated-pipe-recent")
fmtSet = c.readFile(f"{c.dir}/templates/section-generated-pipe-set")
@@ -32,7 +32,7 @@ def sectionGeneratedPipes(entity, sub, c):
src = pipeSource(key, entity)
# Bus.
if src.startswith("K."):
src = pipeBusSource(key, c.structure, fmtBusPipe, fmtBusPipeToggle)
src = pipeBusSource(key, entity, src, c.structure, fmtBusPipe, fmtBusPipeToggle)
fmtPipe = pipeFormat(fmtExRecent, fmtRecent, fmtSet, fmtToggle, fmtToggleNil, key, entity)
for fmt in fmtPipe: