def _set_repository_view(self, session):
if self._repository_view == FEDERATED:<EOL><INDENT>try:<EOL><INDENT>session.use_federated_repository_view()<EOL><DEDENT>except AttributeError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>session.use_isolated_repository_view()<EOL><DEDENT>except AttributeError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>
Sets the underlying repository view to match current view