summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortriatmoko2011-07-14 11:31:55 +0200
committertriatmoko2011-07-14 11:31:55 +0200
commit3426a941fd3192c924fea2ee9736de618be97c92 (patch)
treea507b24ea04c5a24ceadd685d8221dfb7761e1c4
parentMerge branch 'master' of lab.ks.uni-freiburg.de:lsfks/projekte/gsm-selftest (diff)
downloadgsm-selftest-3426a941fd3192c924fea2ee9736de618be97c92.tar.gz
gsm-selftest-3426a941fd3192c924fea2ee9736de618be97c92.tar.xz
gsm-selftest-3426a941fd3192c924fea2ee9736de618be97c92.zip
fix the controller
-rw-r--r--Controller/Controller-SecondType.py15
1 files changed, 2 insertions, 13 deletions
diff --git a/Controller/Controller-SecondType.py b/Controller/Controller-SecondType.py
index b7d9881..be7361a 100644
--- a/Controller/Controller-SecondType.py
+++ b/Controller/Controller-SecondType.py
@@ -13,15 +13,6 @@ from time import sleep
from datetime import datetime
-user = 'root'
-passw = 'randompasswordSQL' #default password we agree with this password before!
-host = 'localhost'
-dbname = 'gsmselftesting'
-
-stop = False
-status = None
-dbSStatus = None
-
sipNum = "4661929"
landlnNum = "076145875681"
@@ -248,11 +239,9 @@ def FuncTest(orig, origAdd, dest, destAdd, destNo):
# Main software
-
-
# Check DB connection
-x = classDb.DBMySQLConnection(user, passw, host, dbname)
-print "connected to the DB ", x.connectDB()
+x = classDb.DBMySQLConnection('root', 'randompasswordSQL', 'localhost', 'gsmselftesting')
+print "Connecting to DB ", x.connectDB()
print ""
dbStatus = x.connectDB()