Index: trunk/fundraiser-statistics/fundraiser-scripts/classes/DataLoader.py |
— | — | @@ -23,6 +23,7 @@ |
24 | 24 | import datetime |
25 | 25 | import re # regular expression matching |
26 | 26 | |
| 27 | +import Fundraiser_Tools.settings as projSet |
27 | 28 | import Fundraiser_Tools.classes.QueryData as QD |
28 | 29 | import Fundraiser_Tools.classes.TimestampProcessor as TP |
29 | 30 | import Fundraiser_Tools.classes.Helper as Hlp |
— | — | @@ -63,7 +64,7 @@ |
64 | 65 | |
65 | 66 | """ Establish connection """ |
66 | 67 | #db = MySQLdb.connect(host='db10.pmtpa.wmnet', user='rfaulk', db='faulkner') |
67 | | - self._db_ = MySQLdb.connect(host='127.0.0.1', user='rfaulk', db='faulkner', port=3307) |
| 68 | + self._db_ = MySQLdb.connect(host=projSet.__db_server__, user=projSet.__user__, db=projSet.__db__, port=projSet.__db_port__) |
68 | 69 | #self.db = MySQLdb.connect(host='storage3.pmtpa.wmnet', user='rfaulk', db='faulkner') |
69 | 70 | |
70 | 71 | """ Create cursor """ |