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