개정판 a4d86399
db test
Change-Id: I0468f9e716d1a07147cf8a6fc2473737f6d01f3b
DTI_PID/DTI_PID/AppDatabase.py | ||
---|---|---|
3 | 3 |
|
4 | 4 |
import sqlite3 |
5 | 5 |
import pymssql |
6 |
#import traceback |
|
6 | 7 |
|
7 | 8 |
|
8 | 9 |
class AppDatabase: |
... | ... | |
88 | 89 |
elif self._DBType == 'MSSQL': |
89 | 90 |
conn = pymssql.connect(host=self._host, user=self._user, password=self._password, database=self.db_name, |
90 | 91 |
port=self._port, charset='utf8', autocommit=False, as_dict=True) |
92 |
|
|
93 |
#print(traceback.format_stack(None, -14)[-1].split('\n')[-2].strip()) |
|
91 | 94 |
|
92 | 95 |
return conn |
93 | 96 |
|
DTI_PID/DTI_PID/AppDocData.py | ||
---|---|---|
178 | 178 |
self._streamLineListModelDatas = [] |
179 | 179 |
self._titleBlockProperties = None |
180 | 180 |
|
181 |
self._configs = None |
|
182 |
self._symbolBase = {} |
|
183 |
self._symbolType = {} |
|
181 |
self._configs = None# if not past else self._configs
|
|
182 |
self._symbolBase = {}# if not past else self._symbolBase
|
|
183 |
self._symbolType = {}# if not past else self._symbolType
|
|
184 | 184 |
self._lineNoPropertiesUID = {} |
185 | 185 |
self._attributeByType = {} |
186 | 186 |
self._connected_items_lists = QEngineeringInstLineNoTextItem() |
... | ... | |
1785 | 1785 |
text_area=symbolTuple['TextArea']) |
1786 | 1786 |
self._symbolBase[fieldName][param] = ret |
1787 | 1787 |
except Exception as ex: |
1788 |
print('error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, |
|
1789 |
sys.exc_info()[-1].tb_lineno)) |
|
1788 |
from App import App |
|
1789 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, |
|
1790 |
sys.exc_info()[-1].tb_lineno) |
|
1791 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
|
1790 | 1792 |
|
1791 | 1793 |
return ret |
1792 | 1794 |
|
... | ... | |
1827 | 1829 |
detectFlip=symbolTuple['flip'], text_area=symbolTuple['TextArea']) |
1828 | 1830 |
ret.append(sym) |
1829 | 1831 |
except Exception as ex: |
1830 |
print('error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, |
|
1831 |
sys.exc_info()[-1].tb_lineno)) |
|
1832 |
from App import App |
|
1833 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, |
|
1834 |
sys.exc_info()[-1].tb_lineno) |
|
1835 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
|
1832 | 1836 |
|
1833 | 1837 |
return ret |
1834 | 1838 |
|
내보내기 Unified diff