diff src/plugins/plugin_tickets_import.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 8b37a62336c3
children 544c4d2fec45
line wrap: on
line diff
--- a/src/plugins/plugin_tickets_import.py	Wed Nov 15 21:15:42 2017 +0100
+++ b/src/plugins/plugin_tickets_import.py	Thu Nov 16 07:31:00 2017 +0100
@@ -123,7 +123,8 @@
         # TODO: handle "private" metadata, to have non public access for node
         # TODO: node access/publish model should be customisable
         comments = ticket_data.get('comments', [])
-        service, node = self._m.getCommentsService(client), self._m.getCommentsNode(session['root_node'] + u'_' + ticket_data['id'])
+        service = yield self._m.getCommentsService(client)
+        node = self._m.getCommentsNode(session['root_node'] + u'_' + ticket_data['id'])
         node_options = {self._p.OPT_ACCESS_MODEL: self._p.ACCESS_OPEN,
                         self._p.OPT_PERSIST_ITEMS: 1,
                         self._p.OPT_MAX_ITEMS: -1,