diff sat/plugins/plugin_exp_pubsub_schema.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_exp_pubsub_schema.py	Sun Jan 06 17:34:56 2019 +0100
+++ b/sat/plugins/plugin_exp_pubsub_schema.py	Sun Jan 06 17:36:51 2019 +0100
@@ -272,21 +272,9 @@
         return d
 
     @defer.inlineCallbacks
-    def getDataFormItems(
-        self,
-        client,
-        service,
-        nodeIdentifier,
-        schema=None,
-        max_items=None,
-        item_ids=None,
-        sub_id=None,
-        rsm_request=None,
-        extra=None,
-        default_node=None,
-        form_ns=None,
-        filters=None,
-    ):
+    def getDataFormItems(self, client, service, nodeIdentifier, schema=None,
+                         max_items=None, item_ids=None, sub_id=None, rsm_request=None,
+                        extra=None, default_node=None, form_ns=None, filters=None):
         """Get items known as being data forms, and convert them to XMLUI
 
         @param schema(domish.Element, data_form.Form, None): schema of the node if known
@@ -499,19 +487,9 @@
 
         return client, service, node, max_items, extra, sub_id
 
-    def _get(
-        self,
-        service="",
-        node="",
-        max_items=10,
-        item_ids=None,
-        sub_id=None,
-        extra=None,
-        default_node=None,
-        form_ns=None,
-        filters=None,
-        profile_key=C.PROF_KEY_NONE,
-    ):
+    def _get(self, service="", node="", max_items=10, item_ids=None, sub_id=None,
+             extra=None, default_node=None, form_ns=None, filters=None,
+             profile_key=C.PROF_KEY_NONE):
         """Bridge method to retrieve data from node with schema
 
         this method is a helper so dependant plugins can use it directly