def vars_match(self, r):
        """
            Check whether the request GET vars match the GET vars in
            the URL of this tab

            @param r: the S3Request
        """

        get_vars = r.get_vars
        if self.vars is None:
            return True
        for k, v in self.vars.iteritems():
            if v is None:
                continue
            if k not in get_vars or \
               k in get_vars and get_vars[k] != v:
                return False
        return True

# =============================================================================
dataset/ETHPy150Open sahana/eden/modules/s3/s3navigation.py/S3ComponentTab.vars_match/original