Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
f9532825 by Philipp Hörist at 2019-06-28T21:36:55Z
DataForms: Detect <reported> element
- - - - -
1 changed file:
- nbxmpp/modules/dataforms.py
Changes:
=====================================
nbxmpp/modules/dataforms.py
=====================================
@@ -667,6 +667,10 @@ class DataForm(ExtendedNode):
for value in self.getTags('instructions'):
self.delChild(value)
+ @property
+ def is_reported(self):
+ return self.getTag('reported') is not None
+
class SimpleDataForm(DataForm, DataRecord):
def __init__(self, type_=None, title=None, instructions=None, fields=None,
View it on GitLab:
https://dev.gajim.org/gajim/python-nbxmpp/commit/f9532825b89abf55d6d41a0b7aa50c91dd4c9250
--
View it on GitLab:
https://dev.gajim.org/gajim/python-nbxmpp/commit/f9532825b89abf55d6d41a0b7aa50c91dd4c9250
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits