def registerSessionByView(self, view, session):
        if view.id() in self.sessionsByViewId:
            self.logger.warn('already sharing view %s with %s' % (view.file_name(), session.str()))
        else:
            self.sessionsByViewId[view.id()] = session
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/sub_collab/registry.py/Registry.registerSessionByView/original