Add Constant variable
This commit is contained in:
parent
c07a251469
commit
9a4c85d4da
|
@ -196,6 +196,8 @@ class MailDetail(Screen): # pylint: disable=too-many-instance-attributes
|
||||||
def inbox_reply(self):
|
def inbox_reply(self):
|
||||||
"""Reply inbox messages"""
|
"""Reply inbox messages"""
|
||||||
state.in_composer = True
|
state.in_composer = True
|
||||||
|
from_address = ' wrote:--------------\n'
|
||||||
|
time_str = '\n\n --------------On '
|
||||||
data = sqlQuery(
|
data = sqlQuery(
|
||||||
"select toaddress, fromaddress, subject, message, received from inbox where"
|
"select toaddress, fromaddress, subject, message, received from inbox where"
|
||||||
" msgid = ?;", state.mail_id)
|
" msgid = ?;", state.mail_id)
|
||||||
|
@ -210,7 +212,7 @@ class MailDetail(Screen): # pylint: disable=too-many-instance-attributes
|
||||||
# sender_name = BMConfigParser().get(data[0][1], 'label')
|
# sender_name = BMConfigParser().get(data[0][1], 'label')
|
||||||
sender_name = data[0][1]
|
sender_name = data[0][1]
|
||||||
composer_obj.body.text = (
|
composer_obj.body.text = (
|
||||||
'\n\n --------------On ' + time_tag + ', ' + sender_name + ' wrote:--------------\n' + data[0][3])
|
time_str + time_tag + ', ' + sender_name + from_address + data[0][3])
|
||||||
composer_obj.body.focus = True
|
composer_obj.body.focus = True
|
||||||
composer_obj.body.cursor = (0, 0)
|
composer_obj.body.cursor = (0, 0)
|
||||||
state.kivyapp.root.ids.sc3.children[1].ids.rv.data = ''
|
state.kivyapp.root.ids.sc3.children[1].ids.rv.data = ''
|
||||||
|
|
Reference in New Issue
Block a user