Changeset View
Changeset View
Standalone View
Standalone View
swh/objstorage/backends/http.py
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | def __contains__(self, obj_id): | ||||
return resp.status_code == 200 | return resp.status_code == 200 | ||||
def __iter__(self): | def __iter__(self): | ||||
raise exc.NonIterableObjStorage("__iter__") | raise exc.NonIterableObjStorage("__iter__") | ||||
def __len__(self): | def __len__(self): | ||||
raise exc.NonIterableObjStorage("__len__") | raise exc.NonIterableObjStorage("__len__") | ||||
def add(self, content, obj_id=None, check_presence=True): | def add(self, content, obj_id, check_presence=True): | ||||
raise exc.ReadOnlyObjStorage("add") | raise exc.ReadOnlyObjStorage("add") | ||||
def delete(self, obj_id): | def delete(self, obj_id): | ||||
raise exc.ReadOnlyObjStorage("delete") | raise exc.ReadOnlyObjStorage("delete") | ||||
def restore(self, content, obj_id=None): | def restore(self, content, obj_id=None): | ||||
raise exc.ReadOnlyObjStorage("restore") | raise exc.ReadOnlyObjStorage("restore") | ||||
Show All 28 Lines |