def get_buf(self, buf_id, view=None):
        req = {
            'name': 'get_buf',
            'id': buf_id
        }
        buf = self.bufs.get(buf_id)
        if buf:
            msg.warn('Syncing buffer %s for consistency.' % buf['path'])
            if 'buf' in buf:
                del buf['buf']
        if view:
            view.set_read_only(True)
            view.set_status('Floobits', 'Floobits locked this file until it is synced.')
        G.AGENT.send(req)
dataset/ETHPy150Open Floobits/floobits-vim/plugin/floo/vim_handler.py/VimHandler.get_buf/original