diff options
author | Philipp Hörist <philipp@hoerist.com> | 2019-12-07 00:10:12 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2019-12-07 00:10:12 +0300 |
commit | 024d1363777555bfe09094e86053ed8ca7464088 (patch) | |
tree | f05c59ff3110f6a06c2e401042bfc2d8ef4140e3 /nbxmpp/structs.py | |
parent | dc337d8c124047863696057a757f6882cdade6fc (diff) |
Pubsub: Unify pubsub notification parsing
PubSubEventData:
- The data attribute is now always None if there is no data
- The empty attribute was removed because the info is available in the data attribute
- Pass delete, purge, retract always through to the application
Diffstat (limited to 'nbxmpp/structs.py')
-rw-r--r-- | nbxmpp/structs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nbxmpp/structs.py b/nbxmpp/structs.py index 52691c3..347d4b1 100644 --- a/nbxmpp/structs.py +++ b/nbxmpp/structs.py @@ -73,8 +73,8 @@ HTTPAuthData.__new__.__defaults__ = (None, None, None, None) StanzaIDData = namedtuple('StanzaIDData', 'id by') StanzaIDData.__new__.__defaults__ = (None, None) -PubSubEventData = namedtuple('PubSubEventData', 'node id item data empty deleted retracted purged') -PubSubEventData.__new__.__defaults__ = (None, None, None, False, False, False, False) +PubSubEventData = namedtuple('PubSubEventData', 'node id item data deleted retracted purged') +PubSubEventData.__new__.__defaults__ = (None, None, None, False, False, False) PubSubConfigResult = namedtuple('PubSubConfigResult', 'jid node form') |