Did I find the right examples for you? yes no

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

        def objectid( opaque=None ):
    if opaque is None:
        id = uuid()
        opaque = id.bytes
    else:
        opaque = str(opaque)
    length = 8+len(opaque)
    rawr = struct.pack( "!IxBH%ds" % len(opaque), 20846, length, 0, opaque )
    assert len(rawr) == length
    csum = CRC16()
    csum.update( rawr )
    rawr = rawr[:6] + struct.pack("!H",csum.value) + rawr[8:]
    return base64.b64encode( rawr )
        


src/c/d/cdmi-serve-HEAD/src/cdmi.py   cdmi-serve(Download)
        noclobber = noclobber.strip().lower() in ("true","yes","1")
 
        objectid = util.objectid( self.request.path )
        metadata = {}
 
            childrenrange = "%d-%d" % (s,e+1-s) # remember? inclusive endpoint
            children = children[s:e]
        objectid = util.objectid( self.request.path )
 
        metadata = target.meta()
        noclobber = noclobber.strip().lower() in ("true","yes","1")
 
        objectid = util.objectid( self.request.path )
 
        if target.exists():
 
        if self.request.cdmi or len(fields) > 0:
            objectid = util.objectid( self.request.path )
            value = target.read( length, offset )
 
        reply = {
                'objectURI': path,
                'objectID': util.objectid( path ),
                'parentURI': self.io.parent( path ),
                'capabilities': capabilities.paths[real],