Files
check-ios-bus/Utilities/platform/2/generation/isToggle.py
Михаил Капелько d893364ff4 d
2023-12-28 13:33:48 +03:00

15 lines
518 B
Python

def isToggle(name, structure):
# Проверяем наличие `toggle` в свойствах канала ядра.
if name in structure.core.pipes:
props = structure.core.pipes[name]
if "toggle" in props:
return True
# Проверяем наличие `toggle` в свойствах канала сервиса.
if name in structure.service.pipes:
props = structure.service.pipes[name]
if "toggle" in props:
return True
return False