Проверка шаблона шины для 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.

15 lines
417B

  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 "НИНАЮ"