core: plugins refactored according to bridge + updatedValue now use profile
This commit is contained in:
parent
b3322dabae
commit
ad29111416
1 changed files with 164 additions and 155 deletions
|
|
@ -69,12 +69,12 @@ class GroupBlog():
|
|||
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 @@ class GroupBlog():
|
|||
'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 @@ class GroupBlog():
|
|||
'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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue