print'It has been a long time and we haven\'t heard an acknowledgement to our msg. Sending again.'
@ -2066,7 +2065,6 @@ class singleCleaner(QThread):
sqlSubmitQueue.put('''UPDATE sent SET lastactiontime=?, msgretrynumber=?, status=? WHERE ackdata=?''')
sqlSubmitQueue.put(t)
sqlReturnQueue.get()
#self.emit(SIGNAL("updateSentItemStatusByAckdata(PyQt_PyObject,PyQt_PyObject)"),ackdata,'Message sent again because the acknowledgement was never received. ' + unicode(strftime(config.get('bitmessagesettings', 'timeformat'),localtime(int(time.time())))))
workerQueue.put(('sendmessage',toaddress))
self.emit(SIGNAL("updateStatusBar(PyQt_PyObject)"),"Doing work necessary to again attempt to deliver a message...")
self.emit(SIGNAL("updateSentItemStatusByAckdata(PyQt_PyObject,PyQt_PyObject)"),ackdata,'Broadcast sent on '+unicode(strftime(config.get('bitmessagesettings','timeformat'),localtime(int(time.time())))))
self.emit(SIGNAL("updateSentItemStatusByAckdata(PyQt_PyObject,PyQt_PyObject)"),ackdata,'Broadcast sent on '+unicode(strftime(config.get('bitmessagesettings','timeformat'),localtime(int(time.time()))),'utf-8'))
#Update the status of the message in the 'sent' table to have a 'broadcastsent' status
self.emit(SIGNAL("updateSentItemStatusByAckdata(PyQt_PyObject,PyQt_PyObject)"),ackdata,'Broadcast sent at '+unicode(strftime(config.get('bitmessagesettings','timeformat'),localtime(int(time.time())))))
self.emit(SIGNAL("updateSentItemStatusByAckdata(PyQt_PyObject,PyQt_PyObject)"),ackdata,'Broadcast sent at '+unicode(strftime(config.get('bitmessagesettings','timeformat'),localtime(int(time.time()))),'utf-8'))
#Update the status of the message in the 'sent' table to have a 'broadcastsent' status
self.emit(SIGNAL("updateSentItemStatusByAckdata(PyQt_PyObject,PyQt_PyObject)"),ackdata,'Message sent. Waiting on acknowledgement. Sent on '+unicode(strftime(config.get('bitmessagesettings','timeformat'),localtime(int(time.time())))))
self.emit(SIGNAL("updateSentItemStatusByAckdata(PyQt_PyObject,PyQt_PyObject)"),ackdata,'Message sent. Waiting on acknowledgement. Sent on '+unicode(strftime(config.get('bitmessagesettings','timeformat'),localtime(int(time.time()))),'utf-8'))
self.emit(SIGNAL("updateStatusBar(PyQt_PyObject)"),'Broacasting the public key request. This program will auto-retry if they are offline.')
self.emit(SIGNAL("updateSentItemStatusByHash(PyQt_PyObject,PyQt_PyObject)"),ripe,'Sending public key request. Waiting for reply. Requested at '+unicode(strftime(config.get('bitmessagesettings','timeformat'),localtime(int(time.time())))))
self.emit(SIGNAL("updateSentItemStatusByHash(PyQt_PyObject,PyQt_PyObject)"),ripe,'Sending public key request. Waiting for reply. Requested at '+unicode(strftime(config.get('bitmessagesettings','timeformat'),localtime(int(time.time()))),'utf-8'))
@ -3649,17 +3647,17 @@ class MyForm(QtGui.QMainWindow):
ifstatus=='findingpubkey':
newItem=myTableWidgetItem('Waiting on their public key. Will request it again soon.')
elifstatus=='sentmessage':
newItem=myTableWidgetItem('Message sent. Waiting on acknowledgement. Sent at '+unicode(strftime(config.get('bitmessagesettings','timeformat'),localtime(lastactiontime))))
newItem=myTableWidgetItem('Message sent. Waiting on acknowledgement. Sent at '+unicode(strftime(config.get('bitmessagesettings','timeformat'),localtime(lastactiontime)),'utf-8'))
elifstatus=='doingpow':
newItem=myTableWidgetItem('Need to do work to send message. Work is queued.')
elifstatus=='ackreceived':
newItem=myTableWidgetItem('Acknowledgement of the message received '+unicode(strftime(config.get('bitmessagesettings','timeformat'),localtime(int(lastactiontime)))))
newItem=myTableWidgetItem('Acknowledgement of the message received '+unicode(strftime(config.get('bitmessagesettings','timeformat'),localtime(int(lastactiontime))),'utf-8'))
elifstatus=='broadcastpending':
newItem=myTableWidgetItem('Doing the work necessary to send broadcast...')
elifstatus=='broadcastsent':
newItem=myTableWidgetItem('Broadcast on '+unicode(strftime(config.get('bitmessagesettings','timeformat'),localtime(int(lastactiontime)))))
newItem=myTableWidgetItem('Broadcast on '+unicode(strftime(config.get('bitmessagesettings','timeformat'),localtime(int(lastactiontime))),'utf-8'))
self.ui.labelStartupTime.setText('Since startup on '+unicode(strftime(config.get('bitmessagesettings','timeformat'),localtime(int(time.time())))))
self.ui.labelStartupTime.setText('Since startup on '+unicode(strftime(config.get('bitmessagesettings','timeformat'),localtime(int(time.time()))),'utf-8'))
self.numberOfMessagesProcessed=0
self.numberOfBroadcastsProcessed=0
self.numberOfPubkeysProcessed=0
@ -4071,7 +4069,7 @@ class MyForm(QtGui.QMainWindow):
#newItem = QtGui.QTableWidgetItem('Doing work necessary to send broadcast...'+ unicode(strftime(config.get('bitmessagesettings', 'timeformat'),localtime(int(time.time())))))
#newItem = QtGui.QTableWidgetItem('Doing work necessary to send broadcast...'+ unicode(strftime(config.get('bitmessagesettings', 'timeformat'),localtime(int(time.time()))),'utf-8'))
newItem=myTableWidgetItem('Work is queued.')
newItem.setData(Qt.UserRole,QByteArray(ackdata))
newItem.setData(33,int(time.time()))
@ -4234,8 +4232,8 @@ class MyForm(QtGui.QMainWindow):
#newItem = QtGui.QTableWidgetItem('Doing work necessary to send broadcast...'+ unicode(strftime(config.get('bitmessagesettings', 'timeformat'),localtime(int(time.time())))))
newItem=myTableWidgetItem('Work is queued. '+unicode(strftime(config.get('bitmessagesettings','timeformat'),localtime(int(time.time())))))
#newItem = QtGui.QTableWidgetItem('Doing work necessary to send broadcast...'+ unicode(strftime(config.get('bitmessagesettings', 'timeformat'),localtime(int(time.time()))),'utf-8'))
newItem=myTableWidgetItem('Work is queued. '+unicode(strftime(config.get('bitmessagesettings','timeformat'),localtime(int(time.time()))),'utf-8'))
newItem.setData(Qt.UserRole,QByteArray(ackdata))
newItem.setData(33,int(time.time()))
self.ui.tableWidgetSent.setItem(0,3,newItem)
@ -4301,7 +4299,7 @@ class MyForm(QtGui.QMainWindow):