Exemplo n.º 1
0
    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
Exemplo n.º 2
0
 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