개정판 6278ed10
issue #000 Export To PAP 수정.
1. WEB API에서 Project 리스트를 못가져와서 에러 표시 하기 위한 수정.
Change-Id: I52dd4884a58bc5cee129f41e1f663e0fff619285
HYTOS/HYTOS/Export_To_PAP.py | ||
---|---|---|
1 | 1 |
# -*- coding: utf-8 -*- |
2 | 2 |
"""This is Equipment module""" |
3 |
|
|
3 |
import sys |
|
4 | 4 |
from PyQt5 import QtCore, QtGui, QtWidgets |
5 | 5 |
from PyQt5.QtWidgets import * |
6 | 6 |
from PyQt5.QtGui import QMovie |
... | ... | |
89 | 89 |
for json_object in json_objects: |
90 | 90 |
self.ui.comboBox_select_PAP_Project.addItem(json_object['Name']) |
91 | 91 |
except Exception as ex: |
92 |
print(ex) |
|
92 |
from App import App |
|
93 |
from AppDocData import MessageType |
|
94 |
|
|
95 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, |
|
96 |
sys.exc_info()[-1].tb_lineno) |
|
97 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
|
93 | 98 |
|
94 | 99 |
def accept(self): |
95 | 100 |
QDialog.accept(self) |
내보내기 Unified diff