~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/model/person.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2010-08-18 20:20:15 UTC
  • mfrom: (11347.10.5 delete-team-2)
  • Revision ID: launchpad@pqm.canonical.com-20100818202015-mzmh92sph59jsbqz
[r=EdwinGrubbs][ui=none][bug 619022] Allow users to delete renamed
        teams that have purged mailing lists.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2009 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
from __future__ import with_statement
4
4
 
2179
2179
        if self.mailing_list is not None:
2180
2180
            mailing_list_email = getUtility(IEmailAddressSet).getByEmail(
2181
2181
                self.mailing_list.address)
2182
 
            mailing_list_email = IMasterObject(mailing_list_email)
 
2182
            if mailing_list_email is not None:
 
2183
                mailing_list_email = IMasterObject(mailing_list_email)
2183
2184
        else:
2184
2185
            mailing_list_email = None
2185
2186
        all_addresses = IMasterStore(self).find(