def get(self, robj, r=None, pr=None, timeout=None, basic_quorum=None,
            notfound_ok=None, head_only=False):
        """
        Get a bucket/key from the server
        """
        # We could detect quorum_controls here but HTTP ignores
        # unknown flags/params.
        params = {'r': r, 'pr': pr, 'timeout': timeout,
                  'basic_quorum': basic_quorum,
                  'notfound_ok': notfound_ok}

        bucket_type = self._get_bucket_type(robj.bucket.bucket_type)

        url = self.object_path(robj.bucket.name, robj.key,
                               bucket_type=bucket_type, **params)
        response = self._request('GET', url)
        return self._parse_body(robj, response, [200, 300, 404])
def get ( self , robj , r = None , pr = None , timeout = None , basic_quorum = None , notfound_ok = None , head_only = False ) : params = { 'r' : r , 'pr' : pr , 'timeout' : timeout , 'basic_quorum' : basic_quorum , 'notfound_ok' : notfound_ok } bucket_type = self . _get_bucket_type ( robj . bucket . bucket_type ) url = self . object_path ( robj . bucket . name , robj . key , bucket_type = bucket_type , ** params ) response = self . _request ( 'GET' , url ) return self . _parse_body ( robj , response , [ 200 , 300 , 404 ] )
Get a bucket/key from the server