Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/c/u/curler-HEAD/curler/service.py   curler(Download)
    def handle_job(self, job):
        time_start = time()
        try:
            log.msg('Got job: %s' % job.handle)
            log.verbose('data=%r' % job.data)
 
        try:
            log.verbose('POSTing to %s, data=%r' % (url, data))
            postdata = urllib.urlencode({
                "job_handle": handle,
                status = int(e.status)
                response = e.response
            log.verbose('POST complete: status=%d, response=%r'
                             % (status, response))
            defer.returnValue({'url': url,
    def startService(self):
        Service.startService(self)
        log.msg('Service starting. servers=%r, job queue=%s, base urls=%r'
                % (self.gearmand_servers, self.job_queue, self.base_urls))
        log.verbose('Verbose logging is enabled')