~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/translations/model/translationtemplatesbuildbehavior.py

  • Committer: Danilo Segan
  • Date: 2011-10-18 09:36:12 UTC
  • mto: This revision was merged to the branch mainline in revision 14171.
  • Revision ID: danilo@canonical.com-20111018093612-sw7g1alzrz8tsieg
A few lint fixes and reverts for unneeded changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
import os
16
16
import pytz
17
17
import tempfile
18
 
import transaction
19
18
 
20
19
from twisted.internet import defer
21
20
from zope.component import getUtility
133
132
    def storeBuildInfo(build, queue_item, build_status):
134
133
        """See `IPackageBuild`."""
135
134
        def got_log(lfa_id):
136
 
            # log, builder and date_finished are read-only, so we must
137
 
            # currently remove the security proxy to set them.
 
135
            # log, builder, date_started and date_finished are read-only,
 
136
            # so we must currently remove the security proxy to set them.
138
137
            naked_build = removeSecurityProxy(build.build)
139
138
            naked_build.log = lfa_id
140
139
            naked_build.builder = queue_item.builder
157
156
        retry it.
158
157
        """
159
158
        build_status = self.extractBuildStatus(slave_status)
 
159
 
160
160
        logger.info(
161
161
            "Templates generation job %s for %s finished with status %s." % (
162
162
            queue_item.specific_job.getName(),
207
207
        d = self.storeBuildInfo(self, queue_item, build_status)
208
208
        d.addCallback(build_info_stored)
209
209
        return d
210