コード例 #1
0
    def head(self, robj, r=None, pr=None, vtag=None):
        with (yield self._getFreeTransport()) as transport:
            ret = yield transport.get(robj.get_bucket().name,
                                      robj.get_key(),
                                      r=r,
                                      pr=pr,
                                      head=True)

        defer.returnValue(self.parseRpbGetResp(ret))
コード例 #2
0
    def head(self, robj, r=None, pr=None, vtag=None):
        with (yield self._getFreeTransport()) as transport:
            ret = yield transport.get(robj.get_bucket().get_name(),
                                      robj.get_key(),
                                      r=r,
                                      pr=pr,
                                      head=True)

        defer.returnValue(self.parseRpbGetResp(ret))
コード例 #3
0
ファイル: pbc_transport.py プロジェクト: calston/riakasaurus
    def get(self, robj, r=None, pr=None, vtag=None):

        # ***FIXME*** whats vtag for? ignored for now

        with (yield self._getFreeTransport()) as transport:
            ret = yield transport.get(robj.get_bucket().get_name(),
                                      robj.get_key(),
                                      r=r,
                                      pr=pr)

        defer.returnValue(self.parseRpbGetResp(ret))
コード例 #4
0
    def get(self, robj, r=None, pr=None, vtag=None):

        # ***FIXME*** whats vtag for? ignored for now

        with (yield self._getFreeTransport()) as transport:
            ret = yield transport.get(robj.get_bucket().get_name(),
                                      robj.get_key(),
                                      r=r,
                                      pr=pr)

        defer.returnValue(self.parseRpbGetResp(ret))