Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0060.py @ 2393:8ed4ac10cb5e
plugin tickets import: create comments nodes with open access/publishing
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 27 Oct 2017 08:35:22 +0200 |
parents | 5675af905725 |
children | 70399d1acb47 |
comparison
equal
deleted
inserted
replaced
2392:b29a53fb270d | 2393:8ed4ac10cb5e |
---|---|
443 @param NodeIdentifier(unicode, None): node name | 443 @param NodeIdentifier(unicode, None): node name |
444 use None to create instant node (identifier will be returned by this method) | 444 use None to create instant node (identifier will be returned by this method) |
445 @param option(dict[unicode, unicode], None): node configuration options | 445 @param option(dict[unicode, unicode], None): node configuration options |
446 @return (unicode): identifier of the created node (may be different from requested name) | 446 @return (unicode): identifier of the created node (may be different from requested name) |
447 """ | 447 """ |
448 # TODO: if pubsub service doesn't hande publish-options, configure it in a second time | |
448 return client.pubsub_client.createNode(service, nodeIdentifier, options) | 449 return client.pubsub_client.createNode(service, nodeIdentifier, options) |
449 | 450 |
450 @defer.inlineCallbacks | 451 @defer.inlineCallbacks |
451 def createIfNewNode(self, client, service, nodeIdentifier, options=None): | 452 def createIfNewNode(self, client, service, nodeIdentifier, options=None): |
452 """Helper method similar to createNode, but will not fail in case of conflict""" | 453 """Helper method similar to createNode, but will not fail in case of conflict""" |