Added suggested review changes for PR 1297

This commit is contained in:
surbhi 2018-07-03 19:30:19 +05:30
parent d7efd746f2
commit 6b2f82a7cd
No known key found for this signature in database
GPG Key ID: 88928762974D3618
2 changed files with 8 additions and 21 deletions

View File

@ -1,5 +1,5 @@
"""This module is for thread start."""
from bitmessagemain import main
# import main method to run first for thread start.
if __name__ == '__main__':
main()

View File

@ -1,18 +1,13 @@
import threading
import time
from addresses import addBMIfNotPresent, decodeAddress
from bmconfigparser import BMConfigParser
from helper_ackPayload import genAckPayload
from helper_sql import sqlExecute
from kivy.app import App
from kivy.core.window import Window
from kivy.uix.boxlayout import BoxLayout
@ -27,25 +22,21 @@ class LoginScreen(BoxLayout):
"""This will use for sending message to recipents from mobile client."""
def send(self):
"""Send used for sending message with title and body."""
"""This used for sending message with subject and body."""
queues.apiAddressGeneratorReturnQueue.queue.clear()
streamNumberForAddress = 1
label = "CisDevelper"
eighteenByteRipe = False
nonceTrialsPerByte = 1000
payloadLengthExtraBytes = 1000
print("BREAK POINT STARTING")
queues.addressGeneratorQueue.put(
(
queues.addressGeneratorQueue.put((
'createRandomAddress', 4,
streamNumberForAddress, label, 1,
"", eighteenByteRipe, nonceTrialsPerByte,
payloadLengthExtraBytes
)
)
))
print(BMConfigParser().sections(), "BMConfigParser().sections()")
fromAddress = queues.apiAddressGeneratorReturnQueue.get()
print("BREAK POINT ENDING")
toAddress = "BM-2cWyUfBdY2FbgyuCb7abFZ49JYxSzUhNFe"
message = self.ids.user_input.text
subject = 'Test'
@ -86,14 +77,10 @@ class LoginScreen(BoxLayout):
encoding,
BMConfigParser().getint('bitmessagesettings', 'ttl'))
queues.workerQueue.put(('sendmessage', toAddress))
print("sqlExecute successfully ##### ##################")
for i in threading.enumerate():
print(i.name)
return None
def sayexit(self):
"""This method will exit the application screen."""
print("**************************EXITING FROM APPLICATION*****************************")
shutdown.doCleanShutdown()
Window.close()