(self)
Prepare "Save as"
Prepare "Save as"
Prepare Save as
def pre_save_as(self):
        '''Prepare "Save as"'''

        if self.remote is True:
            return True

        filepath = FileBrowser(self.control, False, False, None, True)()
        if filepath == -1:
            self.close()
        elif filepath is not False:
            if self.db.filepath is None:
                self.control.cur_dir = filepath
            if isfile(filepath):
                self.overwrite_file(filepath)
            else:
                if self.save(filepath) is not False:
                    self.changed = False
                else:
                    return False
        else:
            return False
def pre_save_as ( self ) : if self . remote is True : return True filepath = FileBrowser ( self . control , False , False , None , True ) ( ) if filepath == - 1 : self . close ( ) elif filepath is not False : if self . db . filepath is None : self . control . cur_dir = filepath if isfile ( filepath ) : self . overwrite_file ( filepath ) else : if self . save ( filepath ) is not False : self . changed = False else : return False else : return False