Mercurial > libervia-backend
diff sat/plugins/plugin_xep_0060.py @ 3933:cecf45416403
plugin XEP-0373 and XEP-0374: Implementation of OX and OXIM:
GPGME is used as the GPG provider.
rel 374
author | Syndace <me@syndace.dev> |
---|---|
date | Tue, 20 Sep 2022 16:22:18 +0200 |
parents | 8289ac1b34f4 |
children | e345d93fb6e5 |
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0060.py Mon Oct 10 15:23:59 2022 +0200 +++ b/sat/plugins/plugin_xep_0060.py Tue Sep 20 16:22:18 2022 +0200 @@ -893,14 +893,20 @@ 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)