def __init__(self, api_key, uri, **kwds): endpoint_url = 'http://' + str(uri.getAuthority().get()) + (uri.getPath().get() if uri.getPath().isPresent() else '') _OmekaObjectStore.__init__(self, endpoint_url=endpoint_url, uri=uri, **kwds) self.__api_client = OmekaRestApiClient(api_key=api_key, endpoint_url=endpoint_url)
def __init__(self, *args, **kwds): _OmekaObjectStore.__init__(self, *args, **kwds) self.__data_dir_path = self._uri.path.get()[1:].replace('/', os.path.sep)