Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0277.py @ 1850:6e547dd7f38c
plugin XEP-0277: add a forgotten string to JID conversion
author | souliane <souliane@mailoo.org> |
---|---|
date | Mon, 22 Feb 2016 14:33:47 +0100 |
parents | b3b25dbac585 |
children | 3c0bb714a80b |
comparison
equal
deleted
inserted
replaced
1849:a754d6381550 | 1850:6e547dd7f38c |
---|---|
511 else: | 511 else: |
512 if not comments_node: | 512 if not comments_node: |
513 raise exceptions.DataError(u"if comments_node is present, it must not be empty") | 513 raise exceptions.DataError(u"if comments_node is present, it must not be empty") |
514 | 514 |
515 try: | 515 try: |
516 comments_service = mb_data['comments_service'] | 516 comments_service = jid.JID(mb_data['comments_service']) |
517 except KeyError: | 517 except KeyError: |
518 comments_service = self.getCommentsService(client, service) | 518 comments_service = self.getCommentsService(client, service) |
519 | 519 |
520 try: | 520 try: |
521 yield self._p.createNode(comments_service, comments_node, options, profile_key=profile) | 521 yield self._p.createNode(comments_service, comments_node, options, profile_key=profile) |