diff sat/plugins/plugin_xep_0277.py @ 2760:3480d4fdf83a

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".
author Goffi <goffi@goffi.org>
date Sun, 06 Jan 2019 17:36:51 +0100
parents 56f94936df1e
children 003b8b4b56a7
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0277.py	Sun Jan 06 17:34:56 2019 +0100
+++ b/sat/plugins/plugin_xep_0277.py	Sun Jan 06 17:36:51 2019 +0100
@@ -788,15 +788,8 @@
 
     ## 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 @@
         )
 
     @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