plugin XEP-0277, quick_frontend: rename mbGetLast to mbGet and add it the parameter "item_ids"

This commit is contained in:
souliane 2015-09-10 07:39:09 +02:00
commit 3da283a698
2 changed files with 14 additions and 12 deletions

View file

@ -638,7 +638,7 @@ class QuickApp(object):
except KeyError:
pass
else:
self.bridge.mbGetLast(comments_service, comments_node, C.NO_LIMIT, {"subscribe":C.BOOL_TRUE}, profile=profile)
self.bridge.mbGet(comments_service, comments_node, C.NO_LIMIT, [], {"subscribe":C.BOOL_TRUE}, profile=profile)
elif event_type == C.PS_RETRACT:
for wid in self.widgets.getWidgets(quick_blog.QuickBlog):
wid.deleteEntryIfPresent(service_s, node, data['id'], profile)

View file

@ -122,7 +122,7 @@ class EntriesManager(object):
"""Add Microblog items to this panel
update is NOT called after addition
@param items_tuple(tuple): (items_data,items_metadata) tuple as returned by mbGetLast
@param items_tuple(tuple): (items_data,items_metadata) tuple as returned by mbGet
"""
items, metadata = items_tuple
for item in items:
@ -132,7 +132,7 @@ class EntriesManager(object):
"""Add Microblog items to this panel
update is NOT called after addition
@param items_tuple(tuple): (items_data,items_metadata) tuple as returned by mbGetLast
@param items_tuple(tuple): (items_data,items_metadata) tuple as returned by mbGet
"""
items, metadata = items_tuple
for item, comments in items: