Mercurial > libervia-backend
comparison sat/plugins/plugin_comp_file_sharing_management.py @ 3932:7af29260ecb8
core: fix and renamed getLocalPath -> get_local_path:
- renaming is following global methods renaming to use snake_case
- for reasons lost in the mists of time, a `profile` argument was used while checking if
`client` is set is enough, and `client.profile` was escaped but actually not used in the
path.
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 10 Oct 2022 15:23:59 +0200 |
parents | 888109774673 |
children | 524856bd7b19 |
comparison
equal
deleted
inserted
replaced
3931:6c5f0fbc519b | 3932:7af29260ecb8 |
---|---|
71 def __init__(self, host): | 71 def __init__(self, host): |
72 log.info(_("File Sharing Management plugin initialization")) | 72 log.info(_("File Sharing Management plugin initialization")) |
73 self.host = host | 73 self.host = host |
74 self._c = host.plugins["XEP-0050"] | 74 self._c = host.plugins["XEP-0050"] |
75 self._t = host.plugins["XEP-0264"] | 75 self._t = host.plugins["XEP-0264"] |
76 self.files_path = host.getLocalPath(None, C.FILES_DIR, profile=False) | 76 self.files_path = host.get_local_path(None, C.FILES_DIR) |
77 host.bridge.addMethod( | 77 host.bridge.addMethod( |
78 "fileSharingDelete", | 78 "fileSharingDelete", |
79 ".plugin", | 79 ".plugin", |
80 in_sign="ssss", | 80 in_sign="ssss", |
81 out_sign="", | 81 out_sign="", |