def host_env_dropdown_list(self, selected_text): vm_data_values = list() for dm_data_value in SystemConfigService.test_env(): tem_data = VM_DataValue(dm_data_value, selected_text) vm_data_values.append(tem_data) pagefileds = {"build_tools": vm_data_values} return self.get_webpart(pagefileds, CICommonControllPath.build_tool_testenv)
def get_pods_buildtools_dropdown_list(self, select_value): vm_data_values = list() for dm_data_value in SystemConfigService.get_pods_build_tools(): tem_data = VM_DataValue(dm_data_value, select_value) vm_data_values.append(tem_data) pagefileds = {"build_tools": vm_data_values} return self.get_webpart(pagefileds, CICommonControllPath.build_tool_pods)
def get_svn_checkut_strategy_dropdown_list(self, selected_strategy_id): vm_data_values = list() for dm_data_value in SystemConfigService.get_svn_strategy_type(): tem_data = VM_DataValue(dm_data_value, selected_strategy_id) vm_data_values.append(tem_data) pagefileds = {"checkout_strategies": vm_data_values} return self.get_webpart(pagefileds, CICommonControllPath.svn_checkout_strategy)
def get_credential_type_dropdown_list(self, selected_credential_id): vm_data_values = list() for dm_data_value in SystemConfigService.get_credential_type(): tem_data = VM_DataValue(dm_data_value, selected_credential_id) vm_data_values.append(tem_data) pagefileds = {"credentials": vm_data_values} return self.get_webpart( pagefileds, CICommonControllPath.credential_type_dropdownlist_controll)