From 5ef01ecdd1b3c8cfd912a135ccd85bcd8c3ff3f8 Mon Sep 17 00:00:00 2001 From: mathieui Date: Tue, 4 Oct 2016 19:47:11 +0200 Subject: Fix XEP-0033 Re-add relevant stanza methods, broken in 7cd1cf32ae69 --- slixmpp/plugins/xep_0033/stanza.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/slixmpp/plugins/xep_0033/stanza.py b/slixmpp/plugins/xep_0033/stanza.py index 7bb31566..50c7b6db 100644 --- a/slixmpp/plugins/xep_0033/stanza.py +++ b/slixmpp/plugins/xep_0033/stanza.py @@ -117,9 +117,12 @@ for atype in ('all', 'bcc', 'cc', 'noreply', 'replyroom', 'replyto', 'to'): setattr(Addresses, "set_%s" % atype, set_multi) setattr(Addresses, "del_%s" % atype, del_multi) - # To retain backwards compatibility: if atype == 'all': Addresses.interfaces.add('addresses') + setattr(Addresses, "get_addresses", get_multi) + setattr(Addresses, "set_addresses", set_multi) + setattr(Addresses, "del_addresses", del_multi) + register_stanza_plugin(Addresses, Address, iterable=True) -- cgit v1.2.3