plugins blog import, tickets import, XEP-0277: fixed call to getCommentsService (it is now returning a Deferred)

This commit is contained in:
Goffi 2017-11-16 07:31:00 +01:00
commit a014e6a873

View file

@ -123,7 +123,8 @@ class TicketsImportPlugin(object):
# 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,