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:
parent
f160577a65
commit
6d1e942f43
1 changed files with 2710 additions and 34 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue