Mercurial > libervia-backend
diff src/plugins/plugin_xep_0277.py @ 1831:68c0dc13d821
plugin blog import, XEP-0277: progress + redirect:
- progression is now handled
- url redirections are handled with PubSub URIs, and returned as metadata with progressFinished
- tmp_dir is cleaned in a finally close
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 23 Jan 2016 20:01:28 +0100 |
parents | 6079752ffeae |
children | b3b25dbac585 |
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0277.py Sat Jan 23 19:56:25 2016 +0100 +++ b/src/plugins/plugin_xep_0277.py Sat Jan 23 20:01:28 2016 +0100 @@ -65,6 +65,7 @@ class XEP_0277(object): + namespace = NS_MICROBLOG def __init__(self, host): log.info(_(u"Microblogging plugin initialization")) @@ -454,7 +455,7 @@ ## publish ## - def getCommentNode(self, item_id): + def getCommentsNode(self, item_id): """Generate comment node @param item_id(unicode): id of the parent item @@ -462,7 +463,7 @@ """ return u"{}{}".format(NS_COMMENT_PREFIX, item_id) - def getCommentService(self, client, parent_service=None): + def getCommentsService(self, client, parent_service=None): """Get prefered PubSub service to create comment node @param pubsub_service(jid.JID, None): PubSub service of the parent item