You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.
xmlnode.setProp("label", self.label.encode("utf-8"))
for value in self.values:
xmlnode.newTextChild(xmlnode.ns(), "value", value.encode("utf-8"))
return xmlnode
@@ -259,7 +260,8 @@
- doc: libxml2.xmlDoc"""
if self.type is not None and self.type not in self.allowed_types:
raise ValueError, "Invalid form field type: %r" % (self.type,)
xmlnode.setProp("type", self.type)
if self.type is not None:
xmlnode.setProp("type", self.type)
if not self.label is None:
xmlnode.setProp("label", self.label)
if not self.name is None:
}}}
The text was updated successfully, but these errors were encountered:
dataforms.Option.label and dataforms.Field.type are optional as per JEP-0004
dataforms.py always attaches these attributes when building the xml.
patch below:
{{{
Index: pyxmpp/jabber/dataforms.py
--- pyxmpp/jabber/dataforms.py (revision 661)
+++ pyxmpp/jabber/dataforms.py (working copy)
@@ -70,7 +70,8 @@
-
xmlnode
:libxml2.xmlNode
-
doc
:libxml2.xmlDoc
"""_unused = doc
-
doc
:libxml2.xmlDoc
"""if self.type is not None and self.type not in self.allowed_types:
raise ValueError, "Invalid form field type: %r" % (self.type,)
The text was updated successfully, but these errors were encountered: