~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/browser/bugtask.py

[r=deryck][bug=785637] Obfuscate email addresses in bugs and question
        titles.

Show diffs side-by-side

added added

removed removed

Lines of Context:
178
178
    TextLineEditorWidget,
179
179
    vocabulary_to_choice_edit_items,
180
180
    )
 
181
from lp.app.browser.stringformatter import FormattersAPI
181
182
from lp.app.browser.tales import (
182
183
    ObjectImageDisplayAPI,
183
184
    PersonFormatterAPI,
650
651
    def page_title(self):
651
652
        heading = 'Bug #%s in %s' % (
652
653
            self.context.bug.id, self.context.bugtargetdisplayname)
653
 
        return smartquote('%s: "%s"') % (heading, self.context.bug.title)
 
654
        title = FormattersAPI(self.context.bug.title).obfuscate_email()
 
655
        return smartquote('%s: "%s"') % (heading, title)
654
656
 
655
657
    @property
656
658
    def next_url(self):