plugin file download: meta plugin to handle file download:
- first code in backend to use async/await Python syntax \o/ - plugin with file upload - URL schemes can be registered - `http` and `https` schemes are handled by default
This commit is contained in:
parent
689e43f6d2
commit
dfed376f62
1 changed files with 201 additions and 11 deletions
|
|
@ -81,15 +81,8 @@ class FilePlugin(object):
|
|||
type_=C.MENU_SINGLE,
|
||||
)
|
||||
|
||||
def _fileSend(
|
||||
self,
|
||||
peer_jid_s,
|
||||
filepath,
|
||||
name="",
|
||||
file_desc="",
|
||||
extra=None,
|
||||
profile=C.PROF_KEY_NONE,
|
||||
):
|
||||
def _fileSend(self, peer_jid_s, filepath, name="", file_desc="", extra=None,
|
||||
profile=C.PROF_KEY_NONE):
|
||||
client = self.host.getClient(profile)
|
||||
return self.fileSend(
|
||||
client, jid.JID(peer_jid_s), filepath, name or None, file_desc or None, extra
|
||||
|
|
|
|||
Loading…
Reference in a new issue