def summon(self, view):
        buf = get_buf(view)
        if buf:
            msg.debug('summoning selection in view %s, buf id %s' % (buf['path'], buf['id']))
            self.selection_changed.append((view, buf, True))
        else:
            path = view.file_name()
            if not utils.is_shared(path):
                editor.error_message((path, G.PROJECT_PATH) % 'Can\'t summon because %s is not in shared path %s.')
                return
            share = editor.ok_cancel_dialog('This file isn\'t shared. Would you like to share it?', 'Share')
            if share:
                sel = [[x.a, x.b] for x in view.sel()]
                self.create_buf_cbs[utils.to_rel_path(path)] = lambda buf_id: send_summon(buf_id, sel)
                self.upload(path)
dataset/ETHPy150Open Floobits/floobits-vim/plugin/floo/vim_handler.py/VimHandler.summon/swapped operands of `%`