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

9 lines
277B

  1. def pipeBusSource(name, entity, busKey, structure, fmt):
  2. valueType = structure.model.fields[name][0]
  3. if "toggle" in entity.pipes[name]:
  4. valueType = "Void"
  5. return fmt \
  6. .replace("%BUS_KEY%", busKey) \
  7. .replace("%BUS_VALUE_TYPE%", valueType)