~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/mail/notificationrecipientset.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-06-25 08:55:37 UTC
  • mfrom: (13287.1.8 bug-800652)
  • Revision ID: launchpad@pqm.canonical.com-20110625085537-moikyoo2pe98zs7r
[r=jcsackett, julian-edwards][bug=800634,
        800652] Enable and display overrides on sync package uploads.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2009-2011 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2009-2010 Canonical Ltd.  This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
3
 
4
4
"""The implementation of the Notification Rec."""
14
14
from zope.interface import implements
15
15
from zope.security.proxy import isinstance as zope_isinstance
16
16
 
17
 
from lp.registry.interfaces.person import IPerson
18
 
from lp.services.mail.interfaces import (
 
17
from canonical.launchpad.interfaces.launchpad import (
19
18
    INotificationRecipientSet,
20
19
    UnknownRecipientError,
21
20
    )
 
21
from lp.registry.interfaces.person import IPerson
22
22
 
23
23
 
24
24
class NotificationRecipientSet:
110
110
                # no association or if the previous one was to a team and
111
111
                # the newer one is to a person.
112
112
                if (old_person is None
113
 
                    or (old_person.is_team and not person.is_team)):
 
113
                    or (old_person.isTeam() and not person.isTeam())):
114
114
                    self._emailToPerson[email] = person
115
115
 
116
116
    def remove(self, persons):