This commit is contained in:
Михаил Капелько
2024-01-08 17:45:45 +03:00
parent aa203c2337
commit e8f330ad2a
12 changed files with 47 additions and 12 deletions

View File

@@ -1,5 +1,11 @@
from generation.isPipeMany import *
def pipeBusSource(name, entity, busKey, structure, fmt):
valueType = structure.model.fields[name][0]
if isPipeMany(name, entity):
itemType = structure.model.fields[key][0]
valueType = f"MPAK.Many<{itemType}>"
return fmt \
.replace("%BUS_KEY%", busKey) \
.replace("%BUS_VALUE_TYPE%", valueType)