Проверка шаблона шины для iOS
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

15 行
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