~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/mail/bugnotificationrecipients.py

  • Committer: Stuart Bishop
  • Date: 2011-09-28 12:49:24 UTC
  • mfrom: (9893.10.1 trivial)
  • mto: This revision was merged to the branch mainline in revision 14178.
  • Revision ID: stuart.bishop@canonical.com-20110928124924-m5a22fymqghw6c5i
Merged trivial into distinct-db-users.

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
            text = "are a bug assignee"
108
108
        self._addReason(person, text, reason)
109
109
 
 
110
    def addBugSupervisor(self, person):
 
111
        """Registers a bug supervisor of a bugtask's pillar of this bug."""
 
112
        reason = "Bug Supervisor"
 
113
        if person.isTeam():
 
114
            text = ("are a member of %s, which is a bug supervisor"
 
115
                    % person.displayname)
 
116
            reason += " @%s" % person.name
 
117
        else:
 
118
            text = "are a bug supervisor"
 
119
        self._addReason(person, text, reason)
 
120
 
 
121
    def addSecurityContact(self, person):
 
122
        """Registers a security contact of a bugtask's pillar of this bug."""
 
123
        reason = "Security Contact"
 
124
        if person.isTeam():
 
125
            text = ("are a member of %s, which is a security contact"
 
126
                    % person.displayname)
 
127
            reason += " @%s" % person.name
 
128
        else:
 
129
            text = "are a security contact"
 
130
        self._addReason(person, text, reason)
 
131
 
110
132
    def addStructuralSubscriber(self, person, target):
111
133
        """Registers a structural subscriber to this bug's target."""
112
134
        reason = "Subscriber (%s)" % target.displayname