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:
parent
a32b8bf9e8
commit
b882fb53ea
1 changed files with 350 additions and 6 deletions
|
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue