def commit(self): if not editor.is_current_file_modified(): return editor.save_current_file() entry = self.get_entry(editor.get_current_file_path()) ash.upload_review( self._review_url, editor.get_current_file_path(), entry.get_name_in_review(), entry.get_origin_path() ) ash.get_review_into_file( self._review_url, entry.get_name_in_review(), entry.get_file_path(), ) self._save_origin(entry.get_file_path()) editor.reopen_current_file() editor.redraw()
def load_current_buffer_from_remote(self): self.update_file(editor.get_current_file_path(), force=True) editor.reopen_current_file()