~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/code/model/sourcepackagerecipebuild.py

  • Committer: Jelmer Vernooij
  • Date: 2010-09-08 16:52:25 UTC
  • mto: (11039.2.52 506256-landing-1)
  • mto: This revision was merged to the branch mainline in revision 11579.
  • Revision ID: jelmer@canonical.com-20100908165225-839vuy0jdz0g0z7s
Eliminate --buildid option, pass around build objects everywhere.

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
    name = SOURCE_PACKAGE_RECIPE_UPLOAD_POLICY_NAME
84
84
    accepted_type = ArchiveUploadType.SOURCE_ONLY
85
85
 
86
 
    def getUploader(self, changes):
 
86
    def getUploader(self, changes, build):
87
87
        """Return the person doing the upload."""
88
 
        build_id = int(getattr(self.options, 'buildid'))
89
 
        sprb = getUtility(ISourcePackageRecipeBuildSource).getById(build_id)
90
 
        return sprb.requester
 
88
        return build.requester
91
89
 
92
90
 
93
91
class SourcePackageRecipeBuild(PackageBuildDerived, Storm):