comparison src/plugins/plugin_xep_0277.py @ 2437:91bbad17fd53

plugins blog import, tickets import, XEP-0277: fixed call to getCommentsService (it is now returning a Deferred)
author Goffi <goffi@goffi.org>
date Thu, 16 Nov 2017 07:31:00 +0100
parents 014feb75092d
children efd7a24d611c
comparison
equal deleted inserted replaced
2436:b52e78cc86ed 2437:91bbad17fd53
539 raise exceptions.DataError(u"if comments_node is present, it must not be empty") 539 raise exceptions.DataError(u"if comments_node is present, it must not be empty")
540 540
541 try: 541 try:
542 comments_service = jid.JID(mb_data['comments_service']) 542 comments_service = jid.JID(mb_data['comments_service'])
543 except KeyError: 543 except KeyError:
544 comments_service = self.getCommentsService(client, service) 544 comments_service = yield self.getCommentsService(client, service)
545 545
546 try: 546 try:
547 yield self._p.createNode(client, comments_service, comments_node, options) 547 yield self._p.createNode(client, comments_service, comments_node, options)
548 except error.StanzaError as e: 548 except error.StanzaError as e:
549 if e.condition == 'conflict': 549 if e.condition == 'conflict':