diff sat/plugins/plugin_misc_tickets.py @ 2785:f18d8315929e

merge_requests: use XHTML for body
author Goffi <goffi@goffi.org>
date Sat, 19 Jan 2019 11:39:02 +0100
parents 003b8b4b56a7
children 989b622faff6
line wrap: on
line diff
--- a/sat/plugins/plugin_misc_tickets.py	Sat Jan 19 11:39:02 2019 +0100
+++ b/sat/plugins/plugin_misc_tickets.py	Sat Jan 19 11:39:02 2019 +0100
@@ -83,16 +83,8 @@
             async=True,
         )
 
-    def _set(
-        self,
-        service,
-        node,
-        values,
-        schema=None,
-        item_id=None,
-        extra=None,
-        profile_key=C.PROF_KEY_NONE,
-    ):
+    def _set(self, service, node, values, schema=None, item_id=None, extra=None,
+             profile_key=C.PROF_KEY_NONE):
         client, service, node, schema, item_id, extra = self._s.prepareBridgeSet(
             service, node, schema, item_id, extra, profile_key
         )
@@ -103,18 +95,8 @@
         return d
 
     @defer.inlineCallbacks
-    def set(
-        self,
-        client,
-        service,
-        node,
-        values,
-        schema=None,
-        item_id=None,
-        extra=None,
-        deserialise=False,
-        form_ns=NS_TICKETS,
-    ):
+    def set(self, client, service, node, values, schema=None, item_id=None, extra=None,
+            deserialise=False, form_ns=NS_TICKETS):
         """Publish a tickets
 
         @param node(unicode, None): Pubsub node to use
@@ -135,9 +117,9 @@
         if not item_id:
             comments_service = yield self._m.getCommentsService(client, service)
 
-            # we need to use uuid for comments node, because we don't know item id in advance
-            # (we don't want to set it ourselves to let the server choose, so we can have
-            #  a nicer id if serial ids is activated)
+            # we need to use uuid for comments node, because we don't know item id in
+            # advance (we don't want to set it ourselves to let the server choose, so we
+            # can have a nicer id if serial ids is activated)
             comments_node = self._m.getCommentsNode(
                 node + u"_" + unicode(shortuuid.uuid())
             )