(self)
Prepare saving
Prepare saving
Prepare saving
def pre_save(self):
        '''Prepare saving'''

        if self.remote is True:
            return True

        if self.db.filepath is None:
            filepath = FileBrowser(self.control, False, False, None, True)()
            if filepath == -1:
                self.close()
            elif filepath is not False:
                self.control.cur_dir = filepath
            else:
                return False
        while True:
            if self.save(self.control.cur_dir) is not False:
                self.changed = False
                break
            elif self.state != 2:
                return False
            else:
                continue
def pre_save ( self ) : if self . remote is True : return True if self . db . filepath is None : filepath = FileBrowser ( self . control , False , False , None , True ) ( ) if filepath == - 1 : self . close ( ) elif filepath is not False : self . control . cur_dir = filepath else : return False while True : if self . save ( self . control . cur_dir ) is not False : self . changed = False break elif self . state != 2 : return False else : continue