diff options
author | Lance Stout <lancestout@gmail.com> | 2010-05-22 22:39:35 +0800 |
---|---|---|
committer | Thom Nichols <tmnichols@gmail.com> | 2010-06-01 22:07:51 +0800 |
commit | 040f426f1ace23583fc035f36390ef7288c68a56 (patch) | |
tree | 0e6a955d495368eccddb950b79024d359fe083d3 /sleekxmpp/stanza/error.py | |
parent | 226b0e4297691d7f48124d0da1e9d851e836fd17 (diff) | |
download | slixmpp-040f426f1ace23583fc035f36390ef7288c68a56.tar.gz slixmpp-040f426f1ace23583fc035f36390ef7288c68a56.tar.bz2 slixmpp-040f426f1ace23583fc035f36390ef7288c68a56.tar.xz slixmpp-040f426f1ace23583fc035f36390ef7288c68a56.zip |
Added the error attribute 'code' to the Error object interface.
Diffstat (limited to 'sleekxmpp/stanza/error.py')
-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' |