~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/buildmaster/model/builder.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-11-18 12:41:34 UTC
  • mfrom: (14322.1.1 800295-protocol)
  • Revision ID: launchpad@pqm.canonical.com-20111118124134-lu9gvlq7vk8o1rlt
[r=mbp][no-qa] Remove runtime non-test dependency of buildmaster on
        buildd code

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
from zope.component import getUtility
44
44
from zope.interface import implements
45
45
 
46
 
from canonical.buildd.slave import BuilderStatus
47
46
from canonical.config import config
48
47
from canonical.database.sqlbase import (
49
48
    SQLBase,
692
691
            return False
693
692
 
694
693
        def check_available(status):
695
 
            return status[0] == BuilderStatus.IDLE
 
694
            return status[0] == 'BuilderStatus.IDLE'
696
695
        return d.addCallbacks(check_available, catch_fault)
697
696
 
698
697
    def _getSlaveScannerLogger(self):