def render_GET(self, request):
        """
        Render as HTML a listing of all known users with links to their
        personal resources.
        """

        domImpl = getDOMImplementation()
        newDoc = domImpl.createDocument(None, "ul", None)
        listing = newDoc.documentElement
        for link, text in self._users():
            linkElement = newDoc.createElement('a')
            linkElement.setAttribute('href', link + '/')
            textNode = newDoc.createTextNode(text)
            linkElement.appendChild(textNode)
            item = newDoc.createElement('li')
            item.appendChild(linkElement)
            listing.appendChild(item)

        htmlDoc = self.template % ({'users': listing.toxml()})
        return htmlDoc.encode("utf-8")

        Render as HTML a listing of all known users with links to their
        personal resources.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/distrib.py