plugin microbloging: fixes bad calls

This commit is contained in:
Goffi 2013-12-13 17:18:29 +01:00
commit b9cf5049b5

View file

@ -439,8 +439,8 @@ class GroupBlog(object):
if publishers_type == 'JID':
publishers_jids = [jid.JID(publisher) for publisher in publishers]
else:
publishers_jid = publishers
return getMassiveLastGroupBlogs(publishers_type, publishers_jid, max_items, profile_key)
publishers_jids = publishers
return self.getMassiveLastGroupBlogs(publishers_type, publishers_jids, max_items, profile_key)
def getMassiveLastGroupBlogs(self, publishers_type, publishers, max_items=10, profile_key='@NONE@'):
"""Get the last published microblogs for a list of groups or jids
@ -514,8 +514,8 @@ class GroupBlog(object):
if publishers_type == 'JID':
publishers_jids = [jid.JID(publisher) for publisher in publishers]
else:
publishers_jid = publishers
return massiveSubscribeGroupBlogs(publishers_type, publishers_jid, profile_key)
publishers_jids = publishers
return self.massiveSubscribeGroupBlogs(publishers_type, publishers_jids, profile_key)
def massiveSubscribeGroupBlogs(self, publishers_type, publishers, profile_key='@NONE@'):
"""Subscribe microblogs for a list of groups or jids