diff options
author | Philipp Hörist <philipp@hoerist.com> | 2019-06-29 00:36:55 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2019-06-29 00:36:55 +0300 |
commit | f9532825b89abf55d6d41a0b7aa50c91dd4c9250 (patch) | |
tree | b9247d8d7defbbcb3ff9af66bcf8685cb4cef386 /nbxmpp/modules | |
parent | ff2e13a9710cbba61ab188ede35c0f8cf4b75a6c (diff) |
DataForms: Detect <reported> element
Diffstat (limited to 'nbxmpp/modules')
-rw-r--r-- | nbxmpp/modules/dataforms.py | 4 |
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, |