~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Curtis Hovey
  • Date: 2011-08-12 14:27:33 UTC
  • mto: This revision was merged to the branch mainline in revision 13685.
  • Revision ID: curtis.hovey@canonical.com-20110812142733-aeykrv7829vkudrl
Hushed lint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
298
298
            # Use the default template and subject.
299
299
            pass
300
300
 
301
 
        # Must have someone to mail, and be a non-open team (because open teams
302
 
        # are unrestricted, notifications on join/ leave do not help the
 
301
        # Must have someone to mail, and be a non-open team (because open
 
302
        # teams are unrestricted, notifications on join/ leave do not help the
303
303
        # admins.
304
304
        if (len(admin_emails) != 0 and
305
305
            self.team.subscriptionpolicy != TeamSubscriptionPolicy.OPEN):
348
348
    @classmethod
349
349
    def create(cls, from_person, to_person, reviewer=None, delete=False):
350
350
        """See `IPersonMergeJobSource`."""
351
 
        if (from_person.is_merge_pending or 
 
351
        if (from_person.is_merge_pending or
352
352
            (not delete and to_person.is_merge_pending)):
353
353
            return None
354
354
        if from_person.is_team: