~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/model/archive.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2010-12-13 15:27:52 UTC
  • mfrom: (12043.1.1 archive-validate-stringfix)
  • Revision ID: launchpad@pqm.canonical.com-20101213152752-uufrke44tt08ihfq
[r=henninge][ui=none][bug=682548] Fix the error returned by
        validatePPA() if the requestor is a team.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1733
1733
        except NoSuchPPA:
1734
1734
            return None
1735
1735
        else:
1736
 
            return "You already have a PPA named '%s'." % proposed_name
 
1736
            text = "You already have a PPA named '%s'." % proposed_name
 
1737
            if person.isTeam():
 
1738
                text = "%s already has a PPA named '%s'." % (
 
1739
                    person.displayname, proposed_name)
 
1740
            return text
1737
1741
 
1738
1742
    def getPockets(self):
1739
1743
        """See `IArchive`."""