From f98ba8b9a17beb03adbe06b7eb41847e732bec70 Mon Sep 17 00:00:00 2001 From: "kuldeep.k@cisinlabs.com" Date: Tue, 28 Dec 2021 21:31:00 +0530 Subject: [PATCH] enabelled sent, trash, create,settings code from main.kv --- .../pybitmessage/baseclass/msg_composer.py | 4 +-- src/tests/mock/pybitmessage/baseclass/sent.py | 19 +++++----- .../mock/pybitmessage/baseclass/trash.py | 4 +-- src/tests/mock/pybitmessage/main.kv | 36 +++++++++---------- 4 files changed, 31 insertions(+), 32 deletions(-) diff --git a/src/tests/mock/pybitmessage/baseclass/msg_composer.py b/src/tests/mock/pybitmessage/baseclass/msg_composer.py index a9cdd343..ad536eff 100644 --- a/src/tests/mock/pybitmessage/baseclass/msg_composer.py +++ b/src/tests/mock/pybitmessage/baseclass/msg_composer.py @@ -44,9 +44,7 @@ class Create(Screen): super(Create, self).__init__(**kwargs) Window.softinput_mode = "below_target" widget_1 = DropDownWidget() - widget_1.ids.txt_input.word_list = [ - addr[1] for addr in sqlQuery( - "SELECT label, address from addressbook")] + widget_1.ids.txt_input.word_list = [] widget_1.ids.txt_input.starting_no = 2 self.add_widget(widget_1) self.children[0].ids.id_scroll.bind(scroll_y=self.check_scroll_y) diff --git a/src/tests/mock/pybitmessage/baseclass/sent.py b/src/tests/mock/pybitmessage/baseclass/sent.py index 506a6a9e..b4b4a4ae 100644 --- a/src/tests/mock/pybitmessage/baseclass/sent.py +++ b/src/tests/mock/pybitmessage/baseclass/sent.py @@ -77,15 +77,16 @@ class Sent(Screen): def sentDataQuery(self, xAddress, where, what, start_indx=0, end_indx=20): """This method is used to retrieving data from sent table""" - self.queryreturn = kivy_helper_search.search_sql( - xAddress, - self.account, - 'sent', - where, - what, - False, - start_indx, - end_indx) + # self.queryreturn = kivy_helper_search.search_sql( + # xAddress, + # self.account, + # 'sent', + # where, + # what, + # False, + # start_indx, + # end_indx) + pass def set_mdlist(self, data, set_index=0): """This method is used to create the mdList""" diff --git a/src/tests/mock/pybitmessage/baseclass/trash.py b/src/tests/mock/pybitmessage/baseclass/trash.py index 2c8063c7..ea0d1cb7 100644 --- a/src/tests/mock/pybitmessage/baseclass/trash.py +++ b/src/tests/mock/pybitmessage/baseclass/trash.py @@ -40,7 +40,7 @@ class Trash(Screen): if state.kivyapp.variable_1: state.association = state.kivyapp.variable_1[0] self.ids.tag_label.text = '' - self.trashDataQuery(0, 20) + # self.trashDataQuery(0, 20) if len(self.trash_messages): self.ids.ml.clear_widgets() self.ids.tag_label.text = 'Trash' @@ -118,7 +118,7 @@ class Trash(Screen): def update_trash_screen_on_scroll(self, total_trash_msg): """Load more data on scroll down""" - self.trashDataQuery(total_trash_msg, 5) + # self.trashDataQuery(total_trash_msg, 5) self.set_mdList() def delete_permanently(self, data_index, folder, instance, *args): diff --git a/src/tests/mock/pybitmessage/main.kv b/src/tests/mock/pybitmessage/main.kv index ac432387..195a7216 100644 --- a/src/tests/mock/pybitmessage/main.kv +++ b/src/tests/mock/pybitmessage/main.kv @@ -246,24 +246,24 @@ MDNavigationLayout: id:sc1 # # Page: # # id:sc2 -# Create: -# id:sc3 -# Sent: -# id:sc4 -# Trash: -# id:sc5 -# Login: -# id:sc6 -# Random: -# id:sc7 -# # Spam: -# # id:sc8 -# Setting: -# id:sc9 -# MyAddress: -# id:sc10 -# AddressBook: -# id:sc11 + Create: + id:sc3 + Sent: + id:sc4 + Trash: + id:sc5 + Login: + id:sc6 + Random: + id:sc7 + # Spam: + # id:sc8 + Setting: + id:sc9 + MyAddress: + id:sc10 + AddressBook: + id:sc11 # Payment: # id:sc12 # NetworkStat: