HomeSoftware Heritage

api: refactor the SWHRemoteClient so it does not inherit from ObjStorage nor…

Description

api: refactor the SWHRemoteClient so it does not inherit from ObjStorage nor SWHRemoteAPI

implement the remote api accessor as a _proxy attribute instead of inheriting
the class to make class instanciation easier and prevent name collision.

Also get rid of the ObjeStorage inheritance which did not help and add
instanciation (argument passing) complexity. This also solve the
'allow_delete' attribute presence which makes no sense for the remote api
component.

Details

Provenance
douarddaAuthored on Mar 26 2019, 5:10 PM
douarddaPushed on Mar 27 2019, 12:25 PM
Differential Revision
D1274: api: implement a new /content endpoint that stream the whole content
Parents
rDOBJS9b29b475898e: tests: improve a bit the test_get_stream test
Branches
Unknown
Tags
Unknown
Build Status
Buildable 4863
Build 6490: test-and-build