~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Curtis Hovey
  • Date: 2011-08-18 20:56:37 UTC
  • mto: This revision was merged to the branch mainline in revision 13736.
  • Revision ID: curtis.hovey@canonical.com-20110818205637-ae0pf9aexdea2mlb
Cleaned up doctrings and hushed lint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
 
51
51
    label = _('Link a bug report')
52
52
    schema = IBugLinkForm
53
 
    page_title = label
54
53
 
55
54
    focused_element_id = 'bug'
56
55
 
74
73
            # XXX flacoste 2006-08-23 bug=57470: This should use proper _().
75
74
            self.setFieldError(
76
75
                'bug',
77
 
                'You are not allowed to link to private bug #%d.' % bug.id)
 
76
                'You are not allowed to link to private bug #%d.'% bug.id)
78
77
            return
79
78
        bug_props = {'bugid': bug.id, 'title': bug.title}
80
79
        response.addNotification(
131
130
    label = _('Remove links to bug reports')
132
131
    schema = IUnlinkBugsForm
133
132
    custom_widget('bugs', LabeledMultiCheckBoxWidget)
134
 
    page_title = label
135
133
 
136
134
    @property
137
135
    def cancel_url(self):