Fix pylint issues based on no-self
This commit is contained in:
parent
30fc79ed45
commit
f004021c6d
|
@ -64,7 +64,8 @@ class NavigateApp(App, TextInput):
|
||||||
App.get_running_app().stop()
|
App.get_running_app().stop()
|
||||||
shutdown.doCleanShutdown()
|
shutdown.doCleanShutdown()
|
||||||
|
|
||||||
def showmeaddresses(self, name="text"):
|
@staticmethod
|
||||||
|
def showmeaddresses(name="text"):
|
||||||
"""Show the addresses in spinner to make as dropdown."""
|
"""Show the addresses in spinner to make as dropdown."""
|
||||||
if name == "text":
|
if name == "text":
|
||||||
return BMConfigParser().addresses()[0]
|
return BMConfigParser().addresses()[0]
|
||||||
|
@ -128,7 +129,8 @@ class NavigateApp(App, TextInput):
|
||||||
self.parent.manager.current = 'page'
|
self.parent.manager.current = 'page'
|
||||||
print('Message Clicked {}'.format(instance))
|
print('Message Clicked {}'.format(instance))
|
||||||
|
|
||||||
def getCurrentAccount(self):
|
@staticmethod
|
||||||
|
def getCurrentAccount():
|
||||||
"""It uses to get current account label."""
|
"""It uses to get current account label."""
|
||||||
return BMConfigParser().get(belonging, 'label') + '({})'.format(belonging)
|
return BMConfigParser().get(belonging, 'label') + '({})'.format(belonging)
|
||||||
|
|
||||||
|
@ -159,15 +161,18 @@ class Inbox(Screen):
|
||||||
Clock.schedule_once(self.init_ui, 0)
|
Clock.schedule_once(self.init_ui, 0)
|
||||||
|
|
||||||
def init_ui(self, dt=0):
|
def init_ui(self, dt=0):
|
||||||
|
"""Clock Schdule for method inbox accounts."""
|
||||||
self.inboxaccounts()
|
self.inboxaccounts()
|
||||||
print(dt)
|
print(dt)
|
||||||
|
|
||||||
def inboxaccounts(self):
|
def inboxaccounts(self):
|
||||||
|
"""Load inbox accounts."""
|
||||||
account = belonging
|
account = belonging
|
||||||
folder = 'inbox'
|
folder = 'inbox'
|
||||||
self.loadMessagelist(account, folder, 'All', '')
|
self.loadMessagelist(account, folder, 'All', '')
|
||||||
|
|
||||||
def loadMessagelist(self, account, folder, where="", what="", unreadOnly=False):
|
def loadMessagelist(self, account, folder, where="", what="", unreadOnly=False):
|
||||||
|
"""Load Inbox list for inbox messages."""
|
||||||
xAddress = "toaddress"
|
xAddress = "toaddress"
|
||||||
queryreturn = kivy_helper_search.search_sql(
|
queryreturn = kivy_helper_search.search_sql(
|
||||||
xAddress, account, folder, where, what, unreadOnly)
|
xAddress, account, folder, where, what, unreadOnly)
|
||||||
|
@ -209,14 +214,17 @@ class Sent(Screen):
|
||||||
Clock.schedule_once(self.init_ui, 0)
|
Clock.schedule_once(self.init_ui, 0)
|
||||||
|
|
||||||
def init_ui(self, dt=0):
|
def init_ui(self, dt=0):
|
||||||
|
"""Clock Schdule for method sent accounts."""
|
||||||
self.sentaccounts()
|
self.sentaccounts()
|
||||||
print(dt)
|
print(dt)
|
||||||
|
|
||||||
def sentaccounts(self):
|
def sentaccounts(self):
|
||||||
|
"""Load sent accounts."""
|
||||||
account = belonging
|
account = belonging
|
||||||
self.loadSent(account, 'All', '')
|
self.loadSent(account, 'All', '')
|
||||||
|
|
||||||
def loadSent(self, account, where="", what=""):
|
def loadSent(self, account, where="", what=""):
|
||||||
|
"""Load Sent list for Sent messages."""
|
||||||
xAddress = 'fromaddress'
|
xAddress = 'fromaddress'
|
||||||
queryreturn = kivy_helper_search.search_sql(
|
queryreturn = kivy_helper_search.search_sql(
|
||||||
xAddress, account, "sent", where, what, False)
|
xAddress, account, "sent", where, what, False)
|
||||||
|
@ -236,13 +244,6 @@ class Sent(Screen):
|
||||||
'text': "yet no message for this account!!!!!!!!!!!!!"}
|
'text': "yet no message for this account!!!!!!!!!!!!!"}
|
||||||
]
|
]
|
||||||
|
|
||||||
def getSentMessageDetail(self, instance):
|
|
||||||
try:
|
|
||||||
self.manager.current = 'page'
|
|
||||||
except AttributeError:
|
|
||||||
self.parent.manager.current = 'page'
|
|
||||||
print('I am {}'.format(instance.text))
|
|
||||||
|
|
||||||
|
|
||||||
class Trash(Screen):
|
class Trash(Screen):
|
||||||
"""Trash Screen uses screen to show widgets of screens."""
|
"""Trash Screen uses screen to show widgets of screens."""
|
||||||
|
@ -257,10 +258,12 @@ class Trash(Screen):
|
||||||
Clock.schedule_once(self.init_ui, 0)
|
Clock.schedule_once(self.init_ui, 0)
|
||||||
|
|
||||||
def init_ui(self, dt=0):
|
def init_ui(self, dt=0):
|
||||||
|
"""Clock Schdule for method inbox accounts."""
|
||||||
self.inboxaccounts()
|
self.inboxaccounts()
|
||||||
print(dt)
|
print(dt)
|
||||||
|
|
||||||
def inboxaccounts(self):
|
def inboxaccounts(self):
|
||||||
|
"""Load inbox accounts."""
|
||||||
account = belonging
|
account = belonging
|
||||||
folder = 'trash'
|
folder = 'trash'
|
||||||
self.loadTrashlist(account, folder, 'All', '')
|
self.loadTrashlist(account, folder, 'All', '')
|
||||||
|
|
Reference in New Issue
Block a user