d
This commit is contained in:
1 parent
4dbbcfdc22
commit
8e103fb4f4
2 files changed
+6
-7
No files matched your search
@@ -1,10 +1,9 @@
|
||||
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 \
|
||||
fmt = fmtBusPipe
|
||||
if "toggle" in entity.pipes[name]:
|
||||
fmt = fmtBusPipeToggle
|
||||
|
||||
return fmt \
|
||||
.replace("%BUS_KEY%", busKey) \
|
||||
.replace("%BUS_VALUE_TYPE%", valueType)
|
||||
Reference in new issue
Block a user