Added suggested review changes for PR 1297
This commit is contained in:
parent
d7efd746f2
commit
6b2f82a7cd
|
@ -1,5 +1,5 @@
|
||||||
|
"""This module is for thread start."""
|
||||||
from bitmessagemain import main
|
from bitmessagemain import main
|
||||||
# import main method to run first for thread start.
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -1,18 +1,13 @@
|
||||||
import threading
|
|
||||||
|
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
|
||||||
from addresses import addBMIfNotPresent, decodeAddress
|
from addresses import addBMIfNotPresent, decodeAddress
|
||||||
|
|
||||||
from bmconfigparser import BMConfigParser
|
from bmconfigparser import BMConfigParser
|
||||||
|
|
||||||
from helper_ackPayload import genAckPayload
|
from helper_ackPayload import genAckPayload
|
||||||
|
|
||||||
|
|
||||||
from helper_sql import sqlExecute
|
from helper_sql import sqlExecute
|
||||||
|
|
||||||
|
|
||||||
from kivy.app import App
|
from kivy.app import App
|
||||||
from kivy.core.window import Window
|
from kivy.core.window import Window
|
||||||
from kivy.uix.boxlayout import BoxLayout
|
from kivy.uix.boxlayout import BoxLayout
|
||||||
|
@ -27,25 +22,21 @@ class LoginScreen(BoxLayout):
|
||||||
"""This will use for sending message to recipents from mobile client."""
|
"""This will use for sending message to recipents from mobile client."""
|
||||||
|
|
||||||
def send(self):
|
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()
|
queues.apiAddressGeneratorReturnQueue.queue.clear()
|
||||||
streamNumberForAddress = 1
|
streamNumberForAddress = 1
|
||||||
label = "CisDevelper"
|
label = "CisDevelper"
|
||||||
eighteenByteRipe = False
|
eighteenByteRipe = False
|
||||||
nonceTrialsPerByte = 1000
|
nonceTrialsPerByte = 1000
|
||||||
payloadLengthExtraBytes = 1000
|
payloadLengthExtraBytes = 1000
|
||||||
print("BREAK POINT STARTING")
|
queues.addressGeneratorQueue.put((
|
||||||
queues.addressGeneratorQueue.put(
|
'createRandomAddress', 4,
|
||||||
(
|
streamNumberForAddress, label, 1,
|
||||||
'createRandomAddress', 4,
|
"", eighteenByteRipe, nonceTrialsPerByte,
|
||||||
streamNumberForAddress, label, 1,
|
payloadLengthExtraBytes
|
||||||
"", eighteenByteRipe, nonceTrialsPerByte,
|
))
|
||||||
payloadLengthExtraBytes
|
|
||||||
)
|
|
||||||
)
|
|
||||||
print(BMConfigParser().sections(), "BMConfigParser().sections()")
|
print(BMConfigParser().sections(), "BMConfigParser().sections()")
|
||||||
fromAddress = queues.apiAddressGeneratorReturnQueue.get()
|
fromAddress = queues.apiAddressGeneratorReturnQueue.get()
|
||||||
print("BREAK POINT ENDING")
|
|
||||||
toAddress = "BM-2cWyUfBdY2FbgyuCb7abFZ49JYxSzUhNFe"
|
toAddress = "BM-2cWyUfBdY2FbgyuCb7abFZ49JYxSzUhNFe"
|
||||||
message = self.ids.user_input.text
|
message = self.ids.user_input.text
|
||||||
subject = 'Test'
|
subject = 'Test'
|
||||||
|
@ -86,14 +77,10 @@ class LoginScreen(BoxLayout):
|
||||||
encoding,
|
encoding,
|
||||||
BMConfigParser().getint('bitmessagesettings', 'ttl'))
|
BMConfigParser().getint('bitmessagesettings', 'ttl'))
|
||||||
queues.workerQueue.put(('sendmessage', toAddress))
|
queues.workerQueue.put(('sendmessage', toAddress))
|
||||||
print("sqlExecute successfully ##### ##################")
|
|
||||||
for i in threading.enumerate():
|
|
||||||
print(i.name)
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def sayexit(self):
|
def sayexit(self):
|
||||||
"""This method will exit the application screen."""
|
"""This method will exit the application screen."""
|
||||||
print("**************************EXITING FROM APPLICATION*****************************")
|
|
||||||
shutdown.doCleanShutdown()
|
shutdown.doCleanShutdown()
|
||||||
Window.close()
|
Window.close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user