def getJobByTicket(self, ticket): log.debug("Getjob: '%s'" % (ticket)) job = self.factory.jobGet(ticket) if job is None: job = self.__jobList.get(ticket) if job is not None: log.debug("Got: '%s'" % job.ticket()) return job
def getJob(self): log.debug("Getjob: '%s'" % (self.__bestbid_ticket)) if self.hasBestBid(): job = self.factory.jobGet(self.__bestbid_ticket) log.debug("Got: '%s'" % job.ticket()) return job #return self.factory.jobGet(self.bid().bid().ticket()) else: #return self.__job return None