Pylint Fixes part1
This commit is contained in:
parent
ddcf2064aa
commit
862e68445b
|
@ -80,7 +80,7 @@ class Inbox(Screen):
|
||||||
def init_ui(self, dt=0):
|
def init_ui(self, dt=0):
|
||||||
"""Clock Schdule for method inbox accounts."""
|
"""Clock Schdule for method inbox accounts."""
|
||||||
self.inboxaccounts()
|
self.inboxaccounts()
|
||||||
print(dt)
|
print dt
|
||||||
|
|
||||||
def inboxaccounts(self):
|
def inboxaccounts(self):
|
||||||
"""Load inbox accounts."""
|
"""Load inbox accounts."""
|
||||||
|
@ -198,7 +198,7 @@ class Inbox(Screen):
|
||||||
try:
|
try:
|
||||||
self.parent.screens[4].clear_widgets()
|
self.parent.screens[4].clear_widgets()
|
||||||
self.parent.screens[4].add_widget(Trash())
|
self.parent.screens[4].add_widget(Trash())
|
||||||
except Exception as e:
|
except Exception:
|
||||||
self.parent.parent.screens[4].clear_widgets()
|
self.parent.parent.screens[4].clear_widgets()
|
||||||
self.parent.parent.screens[4].add_widget(Trash())
|
self.parent.parent.screens[4].add_widget(Trash())
|
||||||
|
|
||||||
|
@ -211,7 +211,7 @@ class Inbox(Screen):
|
||||||
self.remove_widget(self.children[1])
|
self.remove_widget(self.children[1])
|
||||||
try:
|
try:
|
||||||
screens_obj = self.parent.screens[0]
|
screens_obj = self.parent.screens[0]
|
||||||
except Exception as e:
|
except Exception:
|
||||||
screens_obj = self.parent.parent.screens[0]
|
screens_obj = self.parent.parent.screens[0]
|
||||||
screens_obj.add_widget(Inbox())
|
screens_obj.add_widget(Inbox())
|
||||||
self.ids.refresh_layout.refresh_done()
|
self.ids.refresh_layout.refresh_done()
|
||||||
|
@ -270,7 +270,7 @@ class MyAddress(Screen):
|
||||||
self.manager.parent.parent\
|
self.manager.parent.parent\
|
||||||
.parent.ids.search_bar.clear_widgets()
|
.parent.ids.search_bar.clear_widgets()
|
||||||
self.manager.current = 'login'
|
self.manager.current = 'login'
|
||||||
except Exception as e:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def myadd_detail(self, fromaddress, label, *args):
|
def myadd_detail(self, fromaddress, label, *args):
|
||||||
|
@ -288,7 +288,7 @@ class MyAddress(Screen):
|
||||||
self.remove_widget(self.children[1])
|
self.remove_widget(self.children[1])
|
||||||
try:
|
try:
|
||||||
screens_obj = self.parent.screens[9]
|
screens_obj = self.parent.screens[9]
|
||||||
except Exception as e:
|
except Exception:
|
||||||
screens_obj = self.parent.parent.screens[9]
|
screens_obj = self.parent.parent.screens[9]
|
||||||
screens_obj.add_widget(MyAddress())
|
screens_obj.add_widget(MyAddress())
|
||||||
self.ids.refresh_layout.refresh_done()
|
self.ids.refresh_layout.refresh_done()
|
||||||
|
@ -318,7 +318,7 @@ class AddressBook(Screen):
|
||||||
def init_ui(self, dt=0):
|
def init_ui(self, dt=0):
|
||||||
"""Clock Schdule for method AddressBook."""
|
"""Clock Schdule for method AddressBook."""
|
||||||
self.loadAddresslist(None, 'All', '')
|
self.loadAddresslist(None, 'All', '')
|
||||||
print(dt)
|
print dt
|
||||||
|
|
||||||
def loadAddresslist(self, account, where="", what=""):
|
def loadAddresslist(self, account, where="", what=""):
|
||||||
"""Clock Schdule for method AddressBook."""
|
"""Clock Schdule for method AddressBook."""
|
||||||
|
@ -420,7 +420,7 @@ class SelectableLabel(RecycleDataViewBehavior, Label):
|
||||||
"""Respond to the selection of items in the view."""
|
"""Respond to the selection of items in the view."""
|
||||||
self.selected = is_selected
|
self.selected = is_selected
|
||||||
if is_selected:
|
if is_selected:
|
||||||
print("selection changed to {0}".format(rv.data[index]))
|
print "selection changed to {0}".format(rv.data[index])
|
||||||
rv.parent.txt_input.text = rv.parent.txt_input.text.replace(
|
rv.parent.txt_input.text = rv.parent.txt_input.text.replace(
|
||||||
rv.parent.txt_input.text, rv.data[index]['text'])
|
rv.parent.txt_input.text, rv.data[index]['text'])
|
||||||
|
|
||||||
|
@ -446,7 +446,7 @@ class DropDownWidget(BoxLayout):
|
||||||
subject = str(self.ids.subject.text)
|
subject = str(self.ids.subject.text)
|
||||||
message = str(self.ids.body.text)
|
message = str(self.ids.body.text)
|
||||||
encoding = 3
|
encoding = 3
|
||||||
print("message: ", self.ids.body.text)
|
print "message: ", self.ids.body.text
|
||||||
sendMessageToPeople = True
|
sendMessageToPeople = True
|
||||||
if sendMessageToPeople:
|
if sendMessageToPeople:
|
||||||
if toAddress != '' and subject and message:
|
if toAddress != '' and subject and message:
|
||||||
|
@ -458,12 +458,12 @@ class DropDownWidget(BoxLayout):
|
||||||
toAddress = addBMIfNotPresent(toAddress)
|
toAddress = addBMIfNotPresent(toAddress)
|
||||||
statusIconColor = 'red'
|
statusIconColor = 'red'
|
||||||
if addressVersionNumber > 4 or addressVersionNumber <= 1:
|
if addressVersionNumber > 4 or addressVersionNumber <= 1:
|
||||||
print("addressVersionNumber > 4 \
|
print "addressVersionNumber > 4 \
|
||||||
or addressVersionNumber <= 1")
|
or addressVersionNumber <= 1"
|
||||||
if streamNumber > 1 or streamNumber == 0:
|
if streamNumber > 1 or streamNumber == 0:
|
||||||
print("streamNumber > 1 or streamNumber == 0")
|
print "streamNumber > 1 or streamNumber == 0"
|
||||||
if statusIconColor == 'red':
|
if statusIconColor == 'red':
|
||||||
print("shared.statusIconColor == 'red'")
|
print "shared.statusIconColor == 'red'"
|
||||||
stealthLevel = BMConfigParser().safeGetInt(
|
stealthLevel = BMConfigParser().safeGetInt(
|
||||||
'bitmessagesettings', 'ackstealthlevel')
|
'bitmessagesettings', 'ackstealthlevel')
|
||||||
from helper_ackPayload import genAckPayload
|
from helper_ackPayload import genAckPayload
|
||||||
|
@ -494,7 +494,7 @@ class DropDownWidget(BoxLayout):
|
||||||
self.parent.parent.screens[3].add_widget(Sent())
|
self.parent.parent.screens[3].add_widget(Sent())
|
||||||
toLabel = ''
|
toLabel = ''
|
||||||
queues.workerQueue.put(('sendmessage', toAddress))
|
queues.workerQueue.put(('sendmessage', toAddress))
|
||||||
print("sqlExecute successfully #######################")
|
print "sqlExecute successfully #######################"
|
||||||
self.ids.body.text = ''
|
self.ids.body.text = ''
|
||||||
self.ids.ti.text = ''
|
self.ids.ti.text = ''
|
||||||
self.ids.subject.text = ''
|
self.ids.subject.text = ''
|
||||||
|
@ -656,8 +656,7 @@ class Random(Screen):
|
||||||
4, streamNumberForAddress,
|
4, streamNumberForAddress,
|
||||||
label, 1, "", eighteenByteRipe,
|
label, 1, "", eighteenByteRipe,
|
||||||
nonceTrialsPerByte,
|
nonceTrialsPerByte,
|
||||||
payloadLengthExtraBytes)
|
payloadLengthExtraBytes))
|
||||||
)
|
|
||||||
self.manager.current = 'myaddress'
|
self.manager.current = 'myaddress'
|
||||||
self.ids.label.text = ''
|
self.ids.label.text = ''
|
||||||
self.parent.parent.parent.parent.ids.toolbar.opacity = 1
|
self.parent.parent.parent.parent.ids.toolbar.opacity = 1
|
||||||
|
@ -689,7 +688,7 @@ class Sent(Screen):
|
||||||
def init_ui(self, dt=0):
|
def init_ui(self, dt=0):
|
||||||
"""Clock Schdule for method sent accounts."""
|
"""Clock Schdule for method sent accounts."""
|
||||||
self.sentaccounts()
|
self.sentaccounts()
|
||||||
print(dt)
|
print dt
|
||||||
|
|
||||||
def sentaccounts(self):
|
def sentaccounts(self):
|
||||||
"""Load sent accounts."""
|
"""Load sent accounts."""
|
||||||
|
@ -786,7 +785,7 @@ class Sent(Screen):
|
||||||
try:
|
try:
|
||||||
msg_count_objs = self.parent.parent.parent.parent.children[
|
msg_count_objs = self.parent.parent.parent.parent.children[
|
||||||
2].children[0].ids
|
2].children[0].ids
|
||||||
except Exception as e:
|
except Exception:
|
||||||
msg_count_objs = self.parent.parent.parent.parent.parent.children[
|
msg_count_objs = self.parent.parent.parent.parent.parent.children[
|
||||||
2].children[0].ids
|
2].children[0].ids
|
||||||
if int(state.sent_count) > 0:
|
if int(state.sent_count) > 0:
|
||||||
|
@ -816,7 +815,7 @@ class Sent(Screen):
|
||||||
try:
|
try:
|
||||||
self.parent.screens[4].clear_widgets()
|
self.parent.screens[4].clear_widgets()
|
||||||
self.parent.screens[4].add_widget(Trash())
|
self.parent.screens[4].add_widget(Trash())
|
||||||
except Exception as e:
|
except Exception:
|
||||||
self.parent.parent.screens[4].clear_widgets()
|
self.parent.parent.screens[4].clear_widgets()
|
||||||
self.parent.parent.screens[4].add_widget(Trash())
|
self.parent.parent.screens[4].add_widget(Trash())
|
||||||
|
|
||||||
|
@ -1065,7 +1064,7 @@ class NavigateApp(App):
|
||||||
|
|
||||||
def on_stop(self):
|
def on_stop(self):
|
||||||
"""On stop methos is used for stoping the runing script."""
|
"""On stop methos is used for stoping the runing script."""
|
||||||
print("*******************EXITING FROM APPLICATION*******************")
|
print "*******************EXITING FROM APPLICATION*******************"
|
||||||
import shutdown
|
import shutdown
|
||||||
shutdown.doCleanShutdown()
|
shutdown.doCleanShutdown()
|
||||||
|
|
||||||
|
@ -1461,7 +1460,7 @@ class Draft(Screen):
|
||||||
def init_ui(self, dt=0):
|
def init_ui(self, dt=0):
|
||||||
"""Clock Schdule for method draft accounts."""
|
"""Clock Schdule for method draft accounts."""
|
||||||
self.sentaccounts()
|
self.sentaccounts()
|
||||||
print(dt)
|
print dt
|
||||||
|
|
||||||
def sentaccounts(self):
|
def sentaccounts(self):
|
||||||
"""Load draft accounts."""
|
"""Load draft accounts."""
|
||||||
|
@ -1530,7 +1529,7 @@ class Draft(Screen):
|
||||||
try:
|
try:
|
||||||
msg_count_objs = \
|
msg_count_objs = \
|
||||||
self.parent.parent.parent.parent.children[2].children[0].ids
|
self.parent.parent.parent.parent.children[2].children[0].ids
|
||||||
except Exception as e:
|
except Exception:
|
||||||
msg_count_objs = self.parent.parent.parent.parent.parent.children[
|
msg_count_objs = self.parent.parent.parent.parent.parent.children[
|
||||||
2].children[0].ids
|
2].children[0].ids
|
||||||
if int(state.draft_count) > 0:
|
if int(state.draft_count) > 0:
|
||||||
|
@ -1603,5 +1602,5 @@ def remove_search_bar(obj):
|
||||||
"""Remove search bar."""
|
"""Remove search bar."""
|
||||||
try:
|
try:
|
||||||
obj.parent.parent.parent.parent.parent.ids.search_bar.clear_widgets()
|
obj.parent.parent.parent.parent.parent.ids.search_bar.clear_widgets()
|
||||||
except Exception as e:
|
except Exception:
|
||||||
obj.parent.parent.parent.parent.ids.search_bar.clear_widgets()
|
obj.parent.parent.parent.parent.ids.search_bar.clear_widgets()
|
||||||
|
|
Reference in New Issue
Block a user