~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-22 13:33:27 UTC
  • mfrom: (14575.1.1 megalint-10)
  • Revision ID: launchpad@pqm.canonical.com-20111222133327-9fjii9zqltlhmfyy
[r=jtv][no-qa] Lint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    )
27
27
from zope.interface import implements
28
28
 
29
 
from lp.services.database.lpstorm import ISlaveStore
30
29
from canonical.launchpad.webapp.publisher import canonical_url
31
30
from lp.buildmaster.enums import BuildStatus
32
31
from lp.buildmaster.model.buildfarmjob import BuildFarmJob
37
36
from lp.registry.model.person import Person
38
37
from lp.registry.model.sourcepackagename import SourcePackageName
39
38
from lp.services.database.decoratedresultset import DecoratedResultSet
 
39
from lp.services.database.lpstorm import ISlaveStore
40
40
from lp.services.database.stormexpr import CountDistinct
41
41
from lp.soyuz.model.archive import Archive
42
42
from lp.soyuz.model.binarypackagebuild import BinaryPackageBuild
200
200
        # We don't support distinct=False for this result set
201
201
        select = Select(
202
202
            columns=CountDistinct(self.result_set._group_by),
203
 
            tables = self.result_set._tables,
204
 
            where = self.result_set._where,
 
203
            tables=self.result_set._tables,
 
204
            where=self.result_set._where,
205
205
            )
206
206
        result = self.result_set._store.execute(select)
207
207
        return result.get_one()[0]