|
- def pipeBusSource(name, entity, busKey, structure, fmtBusPipe, fmtBusPipeToggle):
- if "toggle" in entity.pipes[name]:
- return fmtBusPipeToggle \
- .replace("%BUS_KEY%", busKey) \
- .replace("%BUS_VALUE_TYPE%", "Void")
-
- valueType = structure.model.fields[name][0]
- return fmtBusPipe \
- .replace("%BUS_KEY%", busKey) \
- .replace("%BUS_VALUE_TYPE%", valueType)
|