(self)
Find entries by title
Find entries by title
Find entries by title
def find_entries(self):
        '''Find entries by title'''

        if self.db.entries:
            title = Editor(self.control.stdscr, max_text_size=1,
                           win_location=(0, 1),
                           win_size=(1, 80), title="Title Search: ")()
            if title == -1:
                self.close()
            elif title is not False and title != '':
                self.remove_results()
                self.db.create_group('Results')
                result_group = self.db.groups[-1]
                result_group.id_ = 0

                for i in self.db.entries:
                    if title.lower() in i.title.lower():
                        result_group.entries.append(i)
                        self.cur_win = 1
                self.cur_root = self.db.root_group
                self.sort_tables(True, True, True)
                self.e_highlight = 0
def find_entries ( self ) : if self . db . entries : title = Editor ( self . control . stdscr , max_text_size = 1 , win_location = ( 0 , 1 ) , win_size = ( 1 , 80 ) , title = "Title Search: " ) ( ) if title == - 1 : self . close ( ) elif title is not False and title != '' : self . remove_results ( ) self . db . create_group ( 'Results' ) result_group = self . db . groups [ - 1 ] result_group . id_ = 0 for i in self . db . entries : if title . lower ( ) in i . title . lower ( ) : result_group . entries . append ( i ) self . cur_win = 1 self . cur_root = self . db . root_group self . sort_tables ( True , True , True ) self . e_highlight = 0