Mercurial > libervia-backend
comparison frontends/src/quick_frontend/quick_blog.py @ 1513:955221487a3e
plugin XEP-0277, quick_frontend: rename mbGetLast to mbGet and add it the parameter "item_ids"
author | souliane <souliane@mailoo.org> |
---|---|
date | Thu, 10 Sep 2015 07:39:09 +0200 |
parents | 9fce331ba0fd |
children | 9e17690fb187 |
comparison
equal
deleted
inserted
replaced
1512:fcfec24c87f3 | 1513:955221487a3e |
---|---|
120 | 120 |
121 def _addMBItems(self, items_tuple, service=None, node=None): | 121 def _addMBItems(self, items_tuple, service=None, node=None): |
122 """Add Microblog items to this panel | 122 """Add Microblog items to this panel |
123 update is NOT called after addition | 123 update is NOT called after addition |
124 | 124 |
125 @param items_tuple(tuple): (items_data,items_metadata) tuple as returned by mbGetLast | 125 @param items_tuple(tuple): (items_data,items_metadata) tuple as returned by mbGet |
126 """ | 126 """ |
127 items, metadata = items_tuple | 127 items, metadata = items_tuple |
128 for item in items: | 128 for item in items: |
129 self.addEntry(item, service=service, node=node, with_update=False) | 129 self.addEntry(item, service=service, node=node, with_update=False) |
130 | 130 |
131 def _addMBItemsWithComments(self, items_tuple, service=None, node=None): | 131 def _addMBItemsWithComments(self, items_tuple, service=None, node=None): |
132 """Add Microblog items to this panel | 132 """Add Microblog items to this panel |
133 update is NOT called after addition | 133 update is NOT called after addition |
134 | 134 |
135 @param items_tuple(tuple): (items_data,items_metadata) tuple as returned by mbGetLast | 135 @param items_tuple(tuple): (items_data,items_metadata) tuple as returned by mbGet |
136 """ | 136 """ |
137 items, metadata = items_tuple | 137 items, metadata = items_tuple |
138 for item, comments in items: | 138 for item, comments in items: |
139 self.addEntry(item, comments, service=service, node=node, with_update=False) | 139 self.addEntry(item, comments, service=service, node=node, with_update=False) |
140 | 140 |