plugin misc lists: templates:

Templates are a way to create lists with pre-filled schemas.
This commit is contained in:
Goffi 2021-02-19 15:49:58 +01:00
commit bdf4759d21

View file

@ -321,6 +321,10 @@ class PubsubSchema(object):
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"),