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