检查操作员是否匹配资源

def match(self, opr, path):
        """ 检查操作员是否匹配资源
        """
        _url = urlparse.urlparse(path)
        if not _url.path or not opr:
            return False
        if _url.path in self.free_routes:
            return True
        if _url.path not in self.routes:
            return False
        return opr in self.routes[_url.path]['oprs']