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

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
12345678
  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)