프로젝트

일반

사용자정보

개정판 05a39092

ID05a39092a49e273dbcd94459be4ddce78ab51e52
상위 7b02722f
하위 23ce7caa

함의성이(가) 5년 이상 전에 추가함

issue #000: add log

Change-Id: Icfe523fe13c3a683ebd971f9a97f21b9da0ce142

차이점 보기:

DTI_PID/DTI_PID/XmlGenerator.py
86 86
        xmlData = generateXml(pidName, pidWidth, pidHeight, searchedSymbolList, textInfoList, noteTextInfoList)
87 87
        ElementTree(xmlData).write(path)
88 88
    except Exception as ex:
89
        print('error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno))
89
        from App import App
90
        from AppDocData import MessageType
91

  
92
        message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
93
        print(message)
94
        App.mainWnd().addMessage.emit(MessageType.Error, message)
90 95

  
91 96
    return path
92 97

  
......
102 107
        xmlData = generateOutputXml(pidName, pidWidth, pidHeight)
103 108
        ElementTree(xmlData).write(path)
104 109
    except Exception as ex:
105
        print('error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno))
110
        from App import App 
111
        from AppDocData import MessageType
112

  
113
        message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
114
        print(message)
115
        App.mainWnd().addMessage.emit(MessageType.Error, message)
106 116

  
107 117
    return path
108 118

  
......
136 146
        for text in appDocData.texts:
137 147
            xml.append(text.toXml())
138 148
    except Exception as ex:
139
        print('error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno))
149
        from App import App
150
        from AppDocData import MessageType
140 151

  
152
        message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
153
        print(message)
154
        App.mainWnd().addMessage.emit(MessageType.Error, message)
141 155
    return xml
142 156

  
143 157
'''
......
174 188

  
175 189
        xml.append(noteTextInfoListNode)
176 190
    except Exception as ex:
177
        print('error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno))
191
        from App import App
192
        from AppDocData import MessageType
193

  
194
        message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
195
        print(message)
196
        App.mainWnd().addMessage.emit(MessageType.Error, message)
178 197

  
179 198
    return xml
180 199

  

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)