Mercurial > libervia-backend
diff src/plugins/plugin_misc_groupblog.py @ 372:f964dcec1611
core: plugins refactored according to bridge + updatedValue now use profile
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 06 Jul 2011 01:06:18 +0200 |
parents | 2572351d875a |
children | cf005701624b |
line wrap: on
line diff
--- a/src/plugins/plugin_misc_groupblog.py Wed Jul 06 01:04:24 2011 +0200 +++ b/src/plugins/plugin_misc_groupblog.py Wed Jul 06 01:06:18 2011 +0200 @@ -69,12 +69,12 @@ for i in range(1,21): self.host.plugins["XEP-0163"].addPEPEvent("MICROBLOG_%02d" % i, NS_MICROBLOG % i, self.groupblogCB, None) - host.bridge.addMethod("cleanBlogCollection", ".communication", in_sign='s', out_sign='', + host.bridge.addMethod("cleanBlogCollection", ".plugin", in_sign='s', out_sign='', method=self.cleanBlogCollection, doc = { }) - host.bridge.addMethod("getMblogNodes", ".communication", in_sign='s', out_sign='a{sas}', + host.bridge.addMethod("getMblogNodes", ".plugin", in_sign='s', out_sign='a{sas}', method=self.getMblogNodes, async = True, doc = { 'summary':"retrieve mblog node, and their association with roster's groups", @@ -82,7 +82,7 @@ 'return':'list of microblog data (dict)' }) - host.bridge.addMethod("sendGroupBlog", ".communication", in_sign='asss', out_sign='', + host.bridge.addMethod("sendGroupBlog", ".plugin", in_sign='asss', out_sign='', method=self.sendGroupBlog, doc = { 'summary':"Send a microblog to a list of groups", 'param_0':'list of groups which can read the microblog', @@ -90,7 +90,7 @@ 'param_2':'%(doc_profile)s' }) - host.bridge.addMethod("subscribeGroupBlog", ".communication", in_sign='ss', out_sign='', + host.bridge.addMethod("subscribeGroupBlog", ".plugin", in_sign='ss', out_sign='', method=self.subscribeGroupBlog, doc = { 'summary':"Subscribe to the group blog of somebody", 'param_0':'jid of the group node published',