|Subject:||[Duplicity-talk] RE : Restoring from PCA Backend - download preparation|
|Date:||Sun, 27 Jun 2021 19:58:02 +0200|
Thanks for your answer Kenneth !
I agree with you, and my first guess was to modify only pcabackend.py, and not mess with « core » files.
My understanding is that the two hooks are not called in my case :
That’s why I’ve implemented it on the following classes:
BackendWrapper > MultiBackend > PCABackend
Did I miss something ?
I think you are on the right track, except, your changes need to be in the backends, no place else. The way this works is that if the backend implements pre_proccess_download[_batch], then they will be used by duplicity. The way to go is to implement those two functions in your backends. duplicity will not be confused since it checks with hasattr() to see if it's available.
We implement site-specific issues in the backend that handles the site. It keeps the base code clean that way.
On Sun, Jun 27, 2021 at 5:05 AM Erwan via Duplicity-talk <email@example.com> wrote:
|[Prev in Thread]||Current Thread||[Next in Thread]|