This commit is contained in:
Михаил Капелько
2024-01-08 17:48:00 +03:00
parent e8f330ad2a
commit a35ffcfbd4

View File

@@ -2,9 +2,11 @@ from generation.isPipeMany import *
def pipeBusSource(name, entity, busKey, structure, fmt): 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}'")
if isPipeMany(name, entity): if isPipeMany(name, entity):
itemType = structure.model.fields[key][0] itemType = structure.model.fields[key][0]
valueType = f"MPAK.Many<{itemType}>" valueType = f"MPAK.Many<{itemType}>"
print(f"pipeBS-2 name: '{name}'")
return fmt \ return fmt \
.replace("%BUS_KEY%", busKey) \ .replace("%BUS_KEY%", busKey) \