summaryrefslogtreecommitdiffstats
path: root/For Weekly Test/tricode/DbClass.py
diff options
context:
space:
mode:
authorTriatmoko2011-10-27 00:18:20 +0200
committerTriatmoko2011-10-27 00:18:20 +0200
commitbb9fbcac24dd531cf14ce16e97a1ecd7782a7fda (patch)
tree0add3ef9403cfd68daaf29a516e374de19af11bb /For Weekly Test/tricode/DbClass.py
parentReport writing (diff)
downloadgsm-selftest-bb9fbcac24dd531cf14ce16e97a1ecd7782a7fda.tar.gz
gsm-selftest-bb9fbcac24dd531cf14ce16e97a1ecd7782a7fda.tar.xz
gsm-selftest-bb9fbcac24dd531cf14ce16e97a1ecd7782a7fda.zip
timeout devconf
Diffstat (limited to 'For Weekly Test/tricode/DbClass.py')
-rwxr-xr-xFor Weekly Test/tricode/DbClass.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/For Weekly Test/tricode/DbClass.py b/For Weekly Test/tricode/DbClass.py
index b130f68..f8e75f5 100755
--- a/For Weekly Test/tricode/DbClass.py
+++ b/For Weekly Test/tricode/DbClass.py
@@ -13,9 +13,6 @@ class DBMySQLConnection:
self.callerLists = list()
self.errCode = None
self.deviceUpdate = None
- self.gsmRZList = None
- self.gsmExtList = None
- self.sipList = None
self.lockSet = 0
global debugMode
debugMode = 0
@@ -152,6 +149,7 @@ class DBMySQLConnection:
try:
stmt = "UPDATE DeviceAddressTable SET portName = '"+ newPortName + "', number = '"+ newNumber+ "' WHERE deviceName = '" + deviceName+ "'"
self.cur.execute(stmt)
+ return 1
except MySQLdb.Error, e:
if debugMode == 1: