diff libervia/backend/plugins/plugin_comp_ap_gateway/ad_hoc.py @ 4270:0d7bb4df2343

Reformatted code base using black.
author Goffi <goffi@goffi.org>
date Wed, 19 Jun 2024 18:44:57 +0200
parents 4b842c1fb686
children
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_comp_ap_gateway/ad_hoc.py	Tue Jun 18 12:06:45 2024 +0200
+++ b/libervia/backend/plugins/plugin_comp_ap_gateway/ad_hoc.py	Wed Jun 19 18:44:57 2024 +0200
@@ -29,6 +29,7 @@
 log = getLogger(__name__)
 NS_XMPP_JID_NODE_2_AP = "https://libervia.org/ap_gateway/xmpp_jid_node_2_ap_actor"
 
+
 class APAdHocService:
     """Ad-Hoc commands for AP Gateway"""
 
@@ -52,7 +53,7 @@
         command_elt: domish.Element,
         session_data: dict,
         action: str,
-        node: str
+        node: str,
     ):
         try:
             x_elt = next(command_elt.elements(data_form.NS_X_DATA, "x"))
@@ -63,18 +64,15 @@
             # root request
             status = self._c.STATUS.EXECUTING
             form = data_form.Form(
-                "form", title="XMPP JID/node to AP actor conversion",
-                formNamespace=NS_XMPP_JID_NODE_2_AP
+                "form",
+                title="XMPP JID/node to AP actor conversion",
+                formNamespace=NS_XMPP_JID_NODE_2_AP,
             )
 
-            field = data_form.Field(
-                "text-single", "jid", required=True
-            )
+            field = data_form.Field("text-single", "jid", required=True)
             form.addField(field)
 
-            field = data_form.Field(
-                "text-single", "node", required=False
-            )
+            field = data_form.Field("text-single", "node", required=False)
             form.addField(field)
 
             payload = form.toElement()