Did I find the right examples for you? yes no

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

src/c/i/ciel-HEAD/src/python/ciel/runtime/pycurl_data_fetch.py   ciel(Download)
 
from ciel.runtime.pycurl_thread import pycURLContext, do_from_curl_thread
from ciel.runtime.block_store import get_fetch_urls_for_ref, create_fetch_file_for_ref, get_own_netloc
from ciel.public.references import SW2_ConcreteReference, SW2_FetchReference
import ciel.runtime.remote_stat as remote_stat
    def __init__(self, ref, callbacks, fetch_client):
        self.ref = ref
        self.urls = get_fetch_urls_for_ref(self.ref)
        self.callbacks = callbacks
        self.failures = 0
    def __init__(self, ref, callbacks, fetch_client):
        self.url = get_fetch_urls_for_ref(ref)[0]
        parsed_url = urlparse.urlparse(self.url)
        self.worker_netloc = parsed_url.netloc
        self.ref = ref

src/c/i/ciel-HEAD/src/python/ciel/runtime/util/start_job.py   ciel(Download)
from ciel.runtime.object_cache import retrieve_object_for_ref, decoders
from optparse import OptionParser
from ciel.runtime.block_store import get_fetch_urls_for_ref
from StringIO import StringIO
import sys
        return retrieve_object_for_ref(ref, decoder, None)
    elif isinstance(ref, SW2_ConcreteReference):
        urls = get_fetch_urls_for_ref(ref)
        _, content = httplib2.Http().request(urls[0])
        return decoders[decoder](StringIO(content))