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

17 lines
475 B
Python

def pipeFormat(fmtExRecent, fmtMany, fmtRecent, fmtSet, fmtToggle, fmtToggleNil, name, entity):
props = entity.pipes[name]
if "many" in props:
return fmtMany
elif "recent" and "ex" in props:
return fmtExRecent
elif "recent" in props:
return fmtRecent
elif "set" in props:
return fmtSet
elif "toggle" in props:
return fmtToggle
elif "toggleNil" in props:
return fmtToggleNil
return "НИНАЮ"