~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/archiveuploader/dscfile.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2012-01-05 09:11:42 UTC
  • mfrom: (14632.2.3 forbid-private-maintainers)
  • Revision ID: launchpad@pqm.canonical.com-20120105091142-j89u7at07xmn8inm
[r=lifeless][bug=611617] Better exception if the maintainer is
        private.

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-2012 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
""" DSCFile and related.
199
199
            raise UploadError(str(error))
200
200
 
201
201
        person = getUtility(IPersonSet).getByEmail(email)
 
202
        if person and person.private:
 
203
            # Private teams can not be maintainers.
 
204
            raise UploadError("Invalid Maintainer.")
 
205
 
202
206
        if person is None and self.policy.create_people:
203
207
            package = self._dict['Source']
204
208
            version = self._dict['Version']