plugin XEP-0277, quick_frontend: rename mbGetLast to mbGet and add it the parameter "item_ids"
This commit is contained in:
parent
d42c6a1e77
commit
3da283a698
2 changed files with 14 additions and 12 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue