~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-06-02 15:19:38 UTC
  • mfrom: (13144.1.3 notify-announce-list)
  • Revision ID: launchpad@pqm.canonical.com-20110602151938-tawdrs82nnt4fp3q
[r=wgrant][no-qa] Drop announce_list from notify() and
        PackageUpload.acceptFromQueue(), leaving it up to notify() internals.

Show diffs side-by-side

added added

removed removed

Lines of Context:
150
150
        if self.archive is None:
151
151
            self.archive = self.distroseries.main_archive
152
152
 
153
 
    @property
154
 
    def announcelist(self):
155
 
        """Return the announcement list address."""
156
 
        announce_list = getattr(self.options, 'announcelist', None)
157
 
        if (announce_list is None and
158
 
            getattr(self, 'distroseries', None) is not None):
159
 
            announce_list = self.distroseries.changeslist
160
 
        return announce_list
161
 
 
162
153
    def checkUpload(self, upload):
163
154
        """Mandatory policy checks on NascentUploads."""
164
155
        if self.archive.is_copy: