summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--For Weekly Test/30-07-2011/ClientClass.pycbin3601 -> 3745 bytes
-rw-r--r--For Weekly Test/30-07-2011/ControllerClass.pycbin5799 -> 5959 bytes
-rw-r--r--For Weekly Test/30-07-2011/DbClass.pycbin7029 -> 7269 bytes
-rw-r--r--For Weekly Test/30-07-2011/LogFileClass.pycbin1494 -> 1574 bytes
-rw-r--r--For Weekly Test/30-07-2011/PingClass.pycbin1251 -> 1315 bytes
-rw-r--r--For Weekly Test/30-07-2011/classCheck.pycbin1081 -> 1129 bytes
-rw-r--r--notFinishedCode/dbClass.py2
-rw-r--r--notFinishedCode/dbClass.pycbin7528 -> 7570 bytes
-rw-r--r--notFinishedCode/dbTest.py23
9 files changed, 18 insertions, 7 deletions
diff --git a/For Weekly Test/30-07-2011/ClientClass.pyc b/For Weekly Test/30-07-2011/ClientClass.pyc
index 7cdfa60..b5ecaa9 100644
--- a/For Weekly Test/30-07-2011/ClientClass.pyc
+++ b/For Weekly Test/30-07-2011/ClientClass.pyc
Binary files differ
diff --git a/For Weekly Test/30-07-2011/ControllerClass.pyc b/For Weekly Test/30-07-2011/ControllerClass.pyc
index 855e630..6cf7c0d 100644
--- a/For Weekly Test/30-07-2011/ControllerClass.pyc
+++ b/For Weekly Test/30-07-2011/ControllerClass.pyc
Binary files differ
diff --git a/For Weekly Test/30-07-2011/DbClass.pyc b/For Weekly Test/30-07-2011/DbClass.pyc
index 2b125c7..1be8356 100644
--- a/For Weekly Test/30-07-2011/DbClass.pyc
+++ b/For Weekly Test/30-07-2011/DbClass.pyc
Binary files differ
diff --git a/For Weekly Test/30-07-2011/LogFileClass.pyc b/For Weekly Test/30-07-2011/LogFileClass.pyc
index 52fd946..e16cef0 100644
--- a/For Weekly Test/30-07-2011/LogFileClass.pyc
+++ b/For Weekly Test/30-07-2011/LogFileClass.pyc
Binary files differ
diff --git a/For Weekly Test/30-07-2011/PingClass.pyc b/For Weekly Test/30-07-2011/PingClass.pyc
index 9ac5c4b..3d8c045 100644
--- a/For Weekly Test/30-07-2011/PingClass.pyc
+++ b/For Weekly Test/30-07-2011/PingClass.pyc
Binary files differ
diff --git a/For Weekly Test/30-07-2011/classCheck.pyc b/For Weekly Test/30-07-2011/classCheck.pyc
index d36941a..2550ed9 100644
--- a/For Weekly Test/30-07-2011/classCheck.pyc
+++ b/For Weekly Test/30-07-2011/classCheck.pyc
Binary files differ
diff --git a/notFinishedCode/dbClass.py b/notFinishedCode/dbClass.py
index dc7ca41..90e4758 100644
--- a/notFinishedCode/dbClass.py
+++ b/notFinishedCode/dbClass.py
@@ -67,6 +67,7 @@ class DBMySQLConnection:
columns = list()
for entry in record:
columns.append(str(entry))
+ columns.append(str(0))
self.tasksList.append(columns)
return 1
except MySQLdb.Error, e:
@@ -239,6 +240,7 @@ class DBMySQLConnection:
columns.append(str(taskNo))
columns.append(str(fromDevice))
columns.append(str(toDevice))
+ columns.append(str(0))
self.tasksList.append(columns)
return 1
diff --git a/notFinishedCode/dbClass.pyc b/notFinishedCode/dbClass.pyc
index e765173..61c02a8 100644
--- a/notFinishedCode/dbClass.pyc
+++ b/notFinishedCode/dbClass.pyc
Binary files differ
diff --git a/notFinishedCode/dbTest.py b/notFinishedCode/dbTest.py
index 5d62f3e..c980764 100644
--- a/notFinishedCode/dbTest.py
+++ b/notFinishedCode/dbTest.py
@@ -12,13 +12,21 @@ print 'i am inserting into the table something', x.insertTaskIn2('gsm4','sip8',2
print 'i am inserting into the table something', x.insertTaskIn2('gsm4','sip8',2)
print 'i am inserting into the table something', x.insertTaskIn2('gsm4','sip8',2)
print 'i am inserting into the table something', x.insertTaskIn2('gsm4','sip8',2)
-for index in range(len(x.tasksList), -1, -1):
- if index != 0:
- item = x.tasksList[index-1]
- taskID = item[0]
+for index in range(len(x.tasksList)):
+ item = x.tasksList[index]
+ tempItem = item
+ taskID = item[0]
+ taskNo = item[1]
+ callFrom = item[2]
+ callTo = item[3]
+ testDone = item[4]
+ print "call from to ", taskID , callFrom , callTo, taskNo, testDone
+ if testDone == str(0):
print item[0]
- print "delete a task from temp table", x.deleteTempTask(taskID)
- del x.tasksList[index-1]
+ tempItem[4]=str(1)
+ print "delete a task from temp table", x.deleteTempTask(taskID)
+ x.tasksList[index]=tempItem
+ #del x.tasksList[index-1]
print '\n\n\n\n'
#new task to do
#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
@@ -37,7 +45,8 @@ for item in x.tasksList[:]:
taskNo = item[1]
callFrom = item[2]
callTo = item[3]
- print "call from to ", taskID , callFrom , callTo, taskNo
+ testDone = item[4]
+ print "call from to ", taskID , callFrom , callTo, taskNo, testDone
print "close connection to the DB", x.closeDBConn()
del x