개정판 e48ac1ce
issue #1124: fix title area
Change-Id: I72b6bec215eae49ea7136d5534d3682f4ded8648
DTI_PID/DTI_PID/AppDocData.py | ||
---|---|---|
862 | 862 |
cursor = conn.cursor() |
863 | 863 |
|
864 | 864 |
for deletedTitleBlockProp in deletedTitleBlockProps: |
865 |
sql = "delete from TitleBlockValues where TitleBlockProperties_UID='{}'".format(deletedTitleBlockProp) |
|
866 |
cursor.execute(sql) |
|
865 | 867 |
sql = "delete from TitleBlockProperties where UID='{}'".format(deletedTitleBlockProp) |
866 | 868 |
cursor.execute(sql) |
867 | 869 |
|
... | ... | |
874 | 876 |
except Exception as ex: |
875 | 877 |
# Roll back any change if something goes wrong |
876 | 878 |
conn.rollback() |
877 |
print('error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, |
|
878 |
sys.exc_info()[-1].tb_lineno)) |
|
879 |
from App import App |
|
880 |
from AppDocData import MessageType |
|
881 |
message = 'error occurred({}) in {}:{}'.format(repr(ex), sys.exc_info()[-1].tb_frame.f_code.co_filename, |
|
882 |
sys.exc_info()[-1].tb_lineno) |
|
883 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
|
879 | 884 |
# Catch the exception |
880 | 885 |
except Exception as ex: |
881 |
print('error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, |
|
882 |
sys.exc_info()[-1].tb_lineno)) |
|
886 |
from App import App |
|
887 |
from AppDocData import MessageType |
|
888 |
message = 'error occurred({}) in {}:{}'.format(repr(ex), sys.exc_info()[-1].tb_frame.f_code.co_filename, |
|
889 |
sys.exc_info()[-1].tb_lineno) |
|
890 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
|
883 | 891 |
|
884 | 892 |
self._titleBlockProperties = None |
885 | 893 |
|
DTI_PID/DTI_PID/ConfigurationAreaDialog.py | ||
---|---|---|
689 | 689 |
|
690 | 690 |
self.isAccepted = True |
691 | 691 |
except Exception as ex: |
692 |
print('error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)) |
|
692 |
from App import App |
|
693 |
from AppDocData import MessageType |
|
694 |
|
|
695 |
message = 'error occurred({}) in {}:{}'.format(repr(ex), sys.exc_info()[-1].tb_frame.f_code.co_filename, |
|
696 |
sys.exc_info()[-1].tb_lineno) |
|
697 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
|
693 | 698 |
finally: |
694 | 699 |
pass |
695 | 700 |
|
내보내기 Unified diff