code: def repoItemChanged(self, rti):
          
          check_class(rti, (BaseRti, int), allow_none=True)
          assert type(rti) != int, "rti: {}".format(rti)
          try:
              self._drawContents(rti)
              self.setCurrentIndex(self.CONTENTS_PAGE_IDX)
          except Exception as ex:
              if DEBUGGING:
                  raise
              logger.exception(ex)
              self.errorWidget.setError(msg=str(ex), title=get_class_name(ex))
              self.setCurrentIndex(self.ERROR_PAGE_IDX)
docs: Updates the content when the current repo tree item changes.
              The rti parameter can be None when no RTI is selected in the repository tree.