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

  1. def sectionGeneratedActionShouldLoad(key, sub, c):
  2. lines = c.readFile(f"{c.dir}/templates/section-generated-action-shouldLoad")
  3. name = key[len("shouldLoad"):]
  4. request = name[0].lower() + name[1:]
  5. output = ""
  6. for fmt in lines:
  7. ln = fmt \
  8. .replace("%NAME%", name) \
  9. .replace("%REQUEST%", request) \
  10. .replace("%SUB%", sub)
  11. output += ln + "\n"
  12. return output