slidge.core.command.adhoc#

Module Contents#

Classes#

AdhocProvider

A slixmpp-like plugin to handle adhoc commands, with less boilerplate and

Attributes#

log

class slidge.core.command.adhoc.AdhocProvider(xmpp)[source]#

A slixmpp-like plugin to handle adhoc commands, with less boilerplate and untyped dict values than slixmpp.

Parameters:

xmpp (slidge.core.gateway.base.BaseGateway) –

async __wrap_initial_handler(command, iq, adhoc_session)[source]#
Parameters:
async __handle_result(session, result, adhoc_session)[source]#
Parameters:
async static __wrap_handler(f, *a, **k)[source]#
Parameters:

f (Union[Callable, functools.partial]) –

async __wrap_form_handler(session, result, form, adhoc_session)[source]#
Parameters:
async __wrap_confirmation(session, confirmation, form, adhoc_session)[source]#
Parameters:
register(command, jid=None)[source]#

Register a command as a adhoc command.

this does not need to be called manually, BaseGateway takes care of that.

Parameters:
async get_items(jid, node, iq)[source]#

Get items for a disco query

Parameters:
  • jid (slixmpp.JID) – who is requesting the disco

  • node (str) – which command node is requested

  • iq (slixmpp.Iq) – the disco query IQ

Returns:

commands accessible to the given JID will be listed

slidge.core.command.adhoc.log[source]#