Files
check-ios-bus/Utilities/platform/2/generation/pipeBusSource.py
Михаил Капелько 00a9a25997 d
2024-01-08 17:56:57 +03:00

12 lines
363 B
Python

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