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

12 lines
363B

  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. valueType = f"MPAK.Many<{valueType}>"
  7. return fmt \
  8. .replace("%BUS_KEY%", busKey) \
  9. .replace("%BUS_VALUE_TYPE%", valueType)