diff libervia/pages/_browser/invitation.py @ 1407:5a132b85e1ac

browser (invitation): fix an indentation issue which was breaking invitations
author Goffi <goffi@goffi.org>
date Fri, 16 Apr 2021 18:45:44 +0200
parents 83be300d17e3
children 106bae41f5c8
line wrap: on
line diff
--- a/libervia/pages/_browser/invitation.py	Fri Apr 16 18:44:49 2021 +0200
+++ b/libervia/pages/_browser/invitation.py	Fri Apr 16 18:45:44 2021 +0200
@@ -318,13 +318,14 @@
                 name = cache.identities[entity_jid]["nicknames"][0]
             except (KeyError, IndexError):
                 name = entity_jid
-        elt.bind(
-            "click",
-            lambda evt, entity_jid=entity_jid, name=name, affiliation_elt=affiliation_elt:
-                self.on_affiliation_set(
-                    entity_jid, name, affiliation_elt, "publisher"
-                ),
-        )
+            elt.bind(
+                "click",
+                lambda evt, entity_jid=entity_jid, name=name,
+                    affiliation_elt=affiliation_elt:
+                    self.on_affiliation_set(
+                        entity_jid, name, affiliation_elt, "publisher"
+                    ),
+            )
         for elt in affiliation_elt.select(".click_to_set_member"):
             try:
                 name = cache.identities[entity_jid]["nicknames"][0]