Mercurial > libervia-backend
diff src/plugins/plugin_xep_0277.py @ 1671:1895846fc9cb
plugin XEP-0277, group blog: added item2data trigger + group permission are parsed when receiving a new item
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 25 Nov 2015 10:45:22 +0100 |
parents | 5d0ff155be1a |
children | 9ff4f60de005 |
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0277.py Wed Nov 25 02:06:44 2015 +0100 +++ b/src/plugins/plugin_xep_0277.py Wed Nov 25 10:45:22 2015 +0100 @@ -319,6 +319,10 @@ categories = (category_elt.getAttribute('term','') for category_elt in entry_elt.elements(NS_ATOM, 'category')) common.iter2dict('tag', categories, microblog_data) + ## the trigger ## + # if other plugins have things to add or change + yield self.host.trigger.point("XEP-0277_item2data", item_elt, entry_elt, microblog_data) + defer.returnValue(microblog_data) @defer.inlineCallbacks