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

pipeBusSource.py 450B

10 months ago
11 months ago
11 months ago
10 months ago
10 months ago
10 months ago
10 months ago
11 months ago
11 months ago
12345678910111213
  1. from generation.isPipeMany import *
  2. def pipeBusSource(name, entity, busKey, structure, fmt):
  3. valueType = structure.model.fields[name][0]
  4. print(f"pipeBS-1 name: '{name}'")
  5. if isPipeMany(name, entity):
  6. itemType = structure.model.fields[key][0]
  7. valueType = f"MPAK.Many<{itemType}>"
  8. print(f"pipeBS-2 name: '{name}'")
  9. return fmt \
  10. .replace("%BUS_KEY%", busKey) \
  11. .replace("%BUS_VALUE_TYPE%", valueType)