summaryrefslogtreecommitdiffstats
path: root/Code/Server-Code/DbClass.py
diff options
context:
space:
mode:
authorKonrad Meier2011-11-14 13:37:50 +0100
committerKonrad Meier2011-11-14 13:37:50 +0100
commit9078cfa9bbee4390b13d6db818b397d084f645fb (patch)
treef94e43ee03148a720ffbdeefc43cea4f0a605f03 /Code/Server-Code/DbClass.py
parentdatabase file without username and password including (diff)
downloadgsm-selftest-9078cfa9bbee4390b13d6db818b397d084f645fb.tar.gz
gsm-selftest-9078cfa9bbee4390b13d6db818b397d084f645fb.tar.xz
gsm-selftest-9078cfa9bbee4390b13d6db818b397d084f645fb.zip
Merged the required login credentials for the database from differnt files to a central place.
Diffstat (limited to 'Code/Server-Code/DbClass.py')
-rwxr-xr-xCode/Server-Code/DbClass.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Code/Server-Code/DbClass.py b/Code/Server-Code/DbClass.py
index cc3a083..fb6b253 100755
--- a/Code/Server-Code/DbClass.py
+++ b/Code/Server-Code/DbClass.py
@@ -2,12 +2,12 @@ import MySQLdb
import string
class DBMySQLConnection:
- def __init__(self, username, password, host, dbname):
+ def __init__(self):
#initialize at the start all the user parameters
- self.usern = username
- self.passw = password
- self.host = host
- self.db = dbname
+ self.usern = "selftest"
+ self.passw = "selftest"
+ self.host = "localhost"
+ self.db = "gsmselftesting"
self.connectionCreated = 0
self.tasksList = list()
self.callerLists = list()