Did I find the right examples for you? yes no

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)

src/c/i/ciel-HEAD/src/python/ciel/runtime/fetcher.py   ciel(Download)
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
from ciel.public.references import SW2_ConcreteReference, SW2_StreamReference, SW2_SocketStreamReference,\
    SWDataValue, SWErrorReference, SW2_FixedReference, decode_datavalue,\
    SW2_FetchReference, decode_datavalue_string, encode_datavalue,\
    def resolve_dataval(self):
        if self.string_callback is not None:
            decoded_dataval = decode_datavalue(self.ref)
            self.string_callback(decoded_dataval)
        else:

src/c/i/ciel-HEAD/src/python/ciel/runtime/block_store.py   ciel(Download)
# XXX: Hack because urlparse doesn't nicely support custom schemes.
import urlparse
from ciel.public.references import SW2_ConcreteReference, SW2_StreamReference,\
    SW2_FetchReference, SW2_FixedReference, SWRealReference, SWErrorReference,\
    SWDataValue, decode_datavalue
def create_datavalue_file(ref):
    bs_ctx = create_fetch_file_for_ref(ref)
    with open(bs_ctx.filename, 'w') as obj_file:
        obj_file.write(decode_datavalue(ref))
    bs_ctx.commit()

src/c/i/ciel-HEAD/src/python/ciel/runtime/master/cluster_view.py   ciel(Download)
import cherrypy
import time
from ciel.public.references import SWDataValue, decode_datavalue
 
def table_row(key, *args):
        ref_string += table_row('Ref type', ref.__class__.__name__)
        if isinstance(ref, SWDataValue):
            ref_string += table_row('Value', decode_datavalue(ref))
        elif hasattr(ref, 'location_hints'):
            ref_string += span_row('Locations')