add description to settings titles
@@ -477,25 +477,25 @@ class DataTransformerAbstractFactory:
self._export_ui_type_config[key] = 'setting'
self._export_ui_order_config.append(key)
- def import_setting_title(self, title):
+ def import_setting_title(self, title, description):
key = '_title_' + str(self._import_title_count)
self._import_title_count += 1
- self._import_ui_data_config[key] = { 'title': title }
+ self._import_ui_data_config[key] = { 'title': title, 'description': description }
self._import_ui_type_config[key] = 'title'
self._import_ui_order_config.append(key)
return
- def export_setting_title(self, title):
+ def export_setting_title(self, title, description):
key = '_title_' + str(self._export_title_count)
self._export_title_count += 1
- self._export_ui_data_config[key] = { 'title': title }
+ self._export_ui_data_config[key] = { 'title': title, 'description': description }
self._export_ui_type_config[key] = 'title'
self._export_ui_order_config.append(key)
return
- def general_setting_title(self, title):
- self.import_setting_title(title)
- self.export_setting_title(title)
+ def general_setting_title(self, title, description):
+ self.import_setting_title(title, description)
+ self.export_setting_title(title, description)
return
def general_setting(self, key, type, default=None, display_name=None, description=None):
