plugin XEP-0004: New data form implementation using Pydantic:

This new model is easier to manipulate and serialize, and use the benefits from Pydantic's
data validation mechanisms. It has method to easily convert to/from Wokkel data form or
to/from a domish.Element.

rel 465
This commit is contained in:
Goffi 2025-10-01 17:57:47 +02:00
commit b882fb53ea

View file

@ -25,7 +25,6 @@ from pathlib import Path
import shutil
from typing import Optional, List, Tuple, Dict, cast
from wokkel.data_form import Option
from libervia import backend
from libervia.backend.core.i18n import _, D_, language_switch
from libervia.backend.core import patches
@ -82,7 +81,6 @@ class LiberviaBackend(service.Service):
# map for short name to whole namespace,
# extended by plugins with register_namespace
self.ns_map = {
"x-data": xmpp.NS_X_DATA,
"disco#info": xmpp.NS_DISCO_INFO,
}