Проверка шаблона шины для iOS
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pipeFormat.py 417B

11 달 전
1234567891011121314
  1. def pipeFormat(fmtExRecent, fmtRecent, fmtSet, fmtToggle, fmtToggleNil, name, entity):
  2. props = entity.pipes[name]
  3. if "recent" and "ex" in props:
  4. return fmtExRecent
  5. elif "recent" in props:
  6. return fmtRecent
  7. elif "set" in props:
  8. return fmtSet
  9. elif "toggle" in props:
  10. return fmtToggle
  11. elif "toggleNil" in props:
  12. return fmtToggleNil
  13. return "НИНАЮ"