def validateRequest(self, uri, postVars, expectedSignature):

        # append the POST variables sorted by key to the uri
        s = uri
        for k, v in sorted(postVars.items()):
            s += k + v

        # compute signature and compare signatures
        return (base64.encodestring(hmac.new(self.auth_token, s, sha1).digest()).\
            strip() == expectedSignature)
Return the refresh timeout for this item
dataset/ETHPy150Open plivo/plivohelper-python/plivohelper.py/Utils.validateRequest--crossover with--dataset/ETHPy150Open codeinthehole/django-cacheback/cacheback/base.py/Job.timeout