~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-10-03 15:22:48 UTC
  • mfrom: (8758.4.18 garbo-lockfile)
  • Revision ID: launchpad@pqm.canonical.com-20111003152248-cv30fo2i8p0mu5mb
[r=lifeless][bug=553254] Regularly prune LoginToken rows

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
            text = "are a security contact"
130
130
        self._addReason(person, text, reason)
131
131
 
132
 
    def addMaintainer(self, person):
133
 
        """Registers a maintainer of a bugtask's pillar of this bug."""
134
 
        reason = "Maintainer"
135
 
        if person.isTeam():
136
 
            text = ("are a member of %s, which is a maintainer"
137
 
                    % person.displayname)
138
 
            reason += " @%s" % person.name
139
 
        else:
140
 
            text = "are a maintainer"
141
 
        self._addReason(person, text, reason)
142
 
 
143
132
    def addStructuralSubscriber(self, person, target):
144
133
        """Registers a structural subscriber to this bug's target."""
145
134
        reason = "Subscriber (%s)" % target.displayname