Did I find the right examples for you? yes no

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

src/c/i/ciel-HEAD/src/python/ciel/runtime/fetcher.py   ciel(Download)
from ciel.runtime.block_store import filename_for_ref, producer_filename,\
    get_own_netloc, create_datavalue_file
from ciel.runtime.producer import get_producer_for_id,\
    ref_from_external_file, ref_from_string
from ciel.runtime.exceptions import ErrorReferenceError,\
    def to_ref(self, refid):
        if self.str is not None:
            ref = ref_from_string(self.str, refid)
        else:
            ref = ref_from_external_file(self.filename, refid)
        #    content hash.
        id = 'urlfetch:%s' % hash.hexdigest()
        ref = ref_from_external_file(fetch_filename, id)
 
    return ref