Проверка шаблона шины для iOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pipeFormat.py 475B

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