plugin XEP-0373 and XEP-0374: Implementation of OX and OXIM:

GPGME is used as the GPG provider.

rel 374
This commit is contained in:
Syndace 2022-09-20 16:22:18 +02:00
commit 6d1e942f43

View file

@ -893,14 +893,20 @@ class XEP_0060(object):
client, jid.JID(service_s) if service_s else None, nodeIdentifier, options
)
def createNode(self, client, service, nodeIdentifier=None, options=None):
def createNode(
self,
client: SatXMPPClient,
service: jid.JID,
nodeIdentifier: Optional[str] = None,
options: Optional[Dict[str, str]] = None
) -> str:
"""Create a new node
@param service(jid.JID): PubSub service,
@param NodeIdentifier(unicode, None): node name
use None to create instant node (identifier will be returned by this method)
@param option(dict[unicode, unicode], None): node configuration options
@return (unicode): identifier of the created node (may be different from requested name)
@param service: PubSub service,
@param NodeIdentifier: node name use None to create instant node (identifier will
be returned by this method)
@param option: node configuration options
@return: identifier of the created node (may be different from requested name)
"""
# TODO: if pubsub service doesn't hande publish-options, configure it in a second time
return client.pubsub_client.createNode(service, nodeIdentifier, options)