parameters: (self, items)
docstring: Force hrefs in |items| to either be absolute (http://...) or qualified
      (beginning with /, in which case it will be moved relative to |base_path|).
      Relative hrefs emit a warning and should be updated.
docstring_summary: Force hrefs in |items| to either be absolute (http://...) or qualified
      (beginning with /, in which case it will be moved relative to |base_path|).
      Relative hrefs emit a warning and should be updated.
docstring_tokens: Force hrefs in |items| to either be absolute ( http : // ... ) or qualified ( beginning with / in which case it will be moved relative to |base_path| ) . Relative hrefs emit a warning and should be updated .
function: def _QualifyHrefs(self, items):
      '''Force hrefs in |items| to either be absolute (http://...) or qualified
      (beginning with /, in which case it will be moved relative to |base_path|).
      Relative hrefs emit a warning and should be updated.
      '''
      for item in items:
        if 'items' in item:
          self._QualifyHrefs(item['items'])
  
        href = item.get('href')
        if href is not None and not href.startswith(('http://', 'https://')):
          if not href.startswith('/'):
            logging.warn('Paths in sidenav must be qualified. %s is not.' % href)
          else:
            href = href.lstrip('/')
          item['href'] = self._server_instance.base_path + href
function_tokens: def _QualifyHrefs ( self , items ) : for item in items : if 'items' in item : self . _QualifyHrefs ( item [ 'items' ] ) href = item . get ( 'href' ) if href is not None and not href . startswith ( ( 'http://' , 'https://' ) ) : if not href . startswith ( '/' ) : logging . warn ( 'Paths in sidenav must be qualified. %s is not.' % href ) else : href = href . lstrip ( '/' ) item [ 'href' ] = self . _server_instance . base_path + href