diff options
author | Lance Stout <lancestout@gmail.com> | 2010-05-22 22:39:35 +0800 |
---|---|---|
committer | Nathan Fritz <fritzy@netflint.net> | 2010-05-25 07:28:43 +0800 |
commit | 828cba875fa5466493e3ea3f804bb349743a0615 (patch) | |
tree | 02525fa677ea714f0528324fd1d8f166bddc7c56 | |
parent | 3920ee394183d95aa6f5b4ee3c8843c2d34ad4cb (diff) | |
download | slixmpp-828cba875fa5466493e3ea3f804bb349743a0615.tar.gz slixmpp-828cba875fa5466493e3ea3f804bb349743a0615.tar.bz2 slixmpp-828cba875fa5466493e3ea3f804bb349743a0615.tar.xz slixmpp-828cba875fa5466493e3ea3f804bb349743a0615.zip |
Added the error attribute 'code' to the Error object interface.
-rw-r--r-- | sleekxmpp/stanza/error.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/stanza/error.py b/sleekxmpp/stanza/error.py index 15af6624..f87b6490 100644 --- a/sleekxmpp/stanza/error.py +++ b/sleekxmpp/stanza/error.py @@ -12,7 +12,7 @@ class Error(ElementBase): name = 'error' plugin_attrib = 'error' conditions = set(('bad-request', 'conflict', 'feature-not-implemented', 'forbidden', 'gone', 'item-not-found', 'jid-malformed', 'not-acceptable', 'not-allowed', 'not-authorized', 'payment-required', 'recipient-unavailable', 'redirect', 'registration-required', 'remote-server-not-found', 'remote-server-timeout', 'service-unavailable', 'subscription-required', 'undefined-condition', 'unexpected-request')) - interfaces = set(('condition', 'text', 'type')) + interfaces = set(('code', 'condition', 'text', 'type')) types = set(('cancel', 'continue', 'modify', 'auth', 'wait')) sub_interfaces = set(('text',)) condition_ns = 'urn:ietf:params:xml:ns:xmpp-stanzas' |