def _set_operable_view(self, session):
for obj_name in self._operable_views:<EOL><INDENT>if self._operable_views[obj_name] == ACTIVE:<EOL><INDENT>try:<EOL><INDENT>getattr(session, '<STR_LIT>' + obj_name + '<STR_LIT>')()<EOL><DEDENT>except AttributeError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>getattr(session, '<STR_LIT>' + obj_name + '<STR_LIT>')()<EOL><DEDENT>except AttributeError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT><DEDENT>
Sets the underlying operable views to match current view