Comment 12 for bug 296339

Revision history for this message
Curtis Hovey (sinzui) wrote : Re: [Bug 296339] Re: don't expose emails from ssh keys and gpg keys in Launchpad

I was thinking of the tales formatter [1]:

    <tal:jabber
      tal:condition="not:view/user"
      tal:content="content context/jabber/fmt:obfuscate-email">
    <tal:jabber
      tal:condition="view/user"
      tal:content="content context/jabber">

[1] If the tales formatter used getUtility(ILaunchBag).user, we would
not need to write near identical code. I was young and naive when I
wrote the formatter.