diff sat/plugins/plugin_xep_0346.py @ 3460:d4a71a1dac88

plugin misc lists: templates: Templates are a way to create lists with pre-filled schemas.
author Goffi <goffi@goffi.org>
date Fri, 19 Feb 2021 15:49:58 +0100
parents 6791103de47d
children cc065c13052c
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0346.py	Thu Feb 04 21:05:21 2021 +0100
+++ b/sat/plugins/plugin_xep_0346.py	Fri Feb 19 15:49:58 2021 +0100
@@ -321,6 +321,10 @@
             for x_elt in item_elt.elements((data_form.NS_X_DATA, "x")):
                 form = data_form.Form.fromElement(x_elt)
                 if form_ns and form.formNamespace != form_ns:
+                    log.debug(
+                        f"form's namespace ({form.formNamespace!r}) differs from expected"
+                        f"{form_ns!r}"
+                    )
                     continue
                 prepend = [
                     ("label", "id"),