(self, cur_dir)
Save the database. cur_dir is the current directory.
Save the database. cur_dir is the current directory.
Save the database . cur_dir is the current directory .
def save(self, cur_dir):
        '''Save the database. cur_dir is the current directory.'''

        self.remove_results()
        self.sort_tables(True, False)
        self.control.draw_text(False,
                               (1, 0, 'Do not interrupt or '
                                'your file will break!'))
        try:
            self.db.save(cur_dir)
        except KPError as err:
            self.control.draw_text(False,
                                   (1, 0, err.__str__()),
                                   (4, 0, 'Press any key.'))
            if self.control.any_key() == -1:
                self.close()
            return False
def save ( self , cur_dir ) : self . remove_results ( ) self . sort_tables ( True , False ) self . control . draw_text ( False , ( 1 , 0 , 'Do not interrupt or ' 'your file will break!' ) ) try : self . db . save ( cur_dir ) except KPError as err : self . control . draw_text ( False , ( 1 , 0 , err . __str__ ( ) ) , ( 4 , 0 , 'Press any key.' ) ) if self . control . any_key ( ) == - 1 : self . close ( ) return False