(self, url=None)
return False
Check if registry has search capabilities in v1
Check if registry has search capabilities in v1
Check if registry has search capabilities in v1
def has_search_v1(self, url=None):
        """Check if registry has search capabilities in v1"""
        if url is None:
            url = self.index_url
        (hdr, dummy) = self._get_url(url + "/v1/search")
        try:
            if ("200" in hdr.data["X-ND-HTTPSTATUS"] or
                    "401" in hdr.data["X-ND-HTTPSTATUS"]):
                return True
        except (KeyError, AttributeError, TypeError):
            pass
        return False
def has_search_v1 ( self , url = None ) : if url is None : url = self . index_url ( hdr , dummy ) = self . _get_url ( url + "/v1/search" ) try : if ( "200" in hdr . data [ "X-ND-HTTPSTATUS" ] or "401" in hdr . data [ "X-ND-HTTPSTATUS" ] ) : return True except ( KeyError , AttributeError , TypeError ) : pass return False