Mercurial > libervia-backend
comparison sat/plugins/plugin_xep_0050.py @ 3529:698579bedd6f
component file sharing (plugin management): new command to get available quota/used space.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 05 May 2021 15:37:33 +0200 |
parents | be6d91572633 |
children | fad3b3ffa8fe |
comparison
equal
deleted
inserted
replaced
3528:849374e59178 | 3529:698579bedd6f |
---|---|
32 from sat.core.constants import Const as C | 32 from sat.core.constants import Const as C |
33 from sat.core.log import getLogger | 33 from sat.core.log import getLogger |
34 from sat.core.xmpp import SatXMPPEntity | 34 from sat.core.xmpp import SatXMPPEntity |
35 from sat.core import exceptions | 35 from sat.core import exceptions |
36 from sat.memory.memory import Sessions | 36 from sat.memory.memory import Sessions |
37 from sat.tools import xml_tools | 37 from sat.tools import xml_tools, utils |
38 from sat.tools.common import data_format | 38 from sat.tools.common import data_format |
39 | 39 |
40 | 40 |
41 log = getLogger(__name__) | 41 log = getLogger(__name__) |
42 | 42 |
231 session_id, session_data = self.sessions.newSession() | 231 session_id, session_data = self.sessions.newSession() |
232 session_data["requestor"] = requestor | 232 session_data["requestor"] = requestor |
233 if action == XEP_0050.ACTION.CANCEL: | 233 if action == XEP_0050.ACTION.CANCEL: |
234 d = defer.succeed((None, XEP_0050.STATUS.CANCELED, None, None)) | 234 d = defer.succeed((None, XEP_0050.STATUS.CANCELED, None, None)) |
235 else: | 235 else: |
236 d = defer.maybeDeferred( | 236 d = utils.asDeferred( |
237 self.callback, | 237 self.callback, |
238 self.client, | 238 self.client, |
239 command_elt, | 239 command_elt, |
240 session_data, | 240 session_data, |
241 action, | 241 action, |