if not (line.userid in user_cache): user_cache[line.userid] = user.User(self.request, line.userid, auth_method="text_docbook:740") author = user_cache[line.userid] if author and author.name: self.addTextElem(revision, "authorinitials", author.name) else: self.addTextElem(revision, "authorinitials", line.hostname or "")