Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2019-06-29 00:36:55 +0300
committerPhilipp Hörist <philipp@hoerist.com>2019-06-29 00:36:55 +0300
commitf9532825b89abf55d6d41a0b7aa50c91dd4c9250 (patch)
treeb9247d8d7defbbcb3ff9af66bcf8685cb4cef386 /nbxmpp/modules
parentff2e13a9710cbba61ab188ede35c0f8cf4b75a6c (diff)
DataForms: Detect <reported> element
Diffstat (limited to 'nbxmpp/modules')
-rw-r--r--nbxmpp/modules/dataforms.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/nbxmpp/modules/dataforms.py b/nbxmpp/modules/dataforms.py
index 14a62e6..cd62751 100644
--- a/nbxmpp/modules/dataforms.py
+++ b/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,