plugins XEP-0060, XEP-0313: implemented Order-By protoXEP:
new "order_by" key can be used in extra data, value can be, for now, "creation" or "modification".
This commit is contained in:
parent
677eebd553
commit
3e63d54e3d
1 changed files with 44 additions and 52 deletions
|
|
@ -788,15 +788,8 @@ class XEP_0277(object):
|
|||
|
||||
## get ##
|
||||
|
||||
def _mbGet(
|
||||
self,
|
||||
service="",
|
||||
node="",
|
||||
max_items=10,
|
||||
item_ids=None,
|
||||
extra_dict=None,
|
||||
profile_key=C.PROF_KEY_NONE,
|
||||
):
|
||||
def _mbGet(self, service="", node="", max_items=10, item_ids=None, extra_dict=None,
|
||||
profile_key=C.PROF_KEY_NONE):
|
||||
"""
|
||||
@param max_items(int): maximum number of item to get, C.NO_LIMIT for no limit
|
||||
@param item_ids (list[unicode]): list of item IDs
|
||||
|
|
@ -816,16 +809,8 @@ class XEP_0277(object):
|
|||
)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def mbGet(
|
||||
self,
|
||||
client,
|
||||
service=None,
|
||||
node=None,
|
||||
max_items=10,
|
||||
item_ids=None,
|
||||
rsm_request=None,
|
||||
extra=None,
|
||||
):
|
||||
def mbGet(self, client, service=None, node=None, max_items=10, item_ids=None,
|
||||
rsm_request=None, extra=None):
|
||||
"""Get some microblogs
|
||||
|
||||
@param service(jid.JID, None): jid of the publisher
|
||||
|
|
|
|||
Loading…
Reference in a new issue