summaryrefslogtreecommitdiff
path: root/slixmpp/plugins/xep_0363/stanza.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-03-08 14:28:55 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-03-08 14:29:07 +0100
commitbd63b1ce7056ca4c5d1b63e919111f27ffba8dc2 (patch)
tree72fcfb338f57d934feb1f772a1e85add7fac761d /slixmpp/plugins/xep_0363/stanza.py
parent29faf114a7031d5f2427ea73b862ce4e3b3fc04d (diff)
downloadslixmpp-bd63b1ce7056ca4c5d1b63e919111f27ffba8dc2.tar.gz
slixmpp-bd63b1ce7056ca4c5d1b63e919111f27ffba8dc2.tar.bz2
slixmpp-bd63b1ce7056ca4c5d1b63e919111f27ffba8dc2.tar.xz
slixmpp-bd63b1ce7056ca4c5d1b63e919111f27ffba8dc2.zip
Simplify usage of HTTP File Upload plugin.
This makes it usable only on Python 3.5, as documented.
Diffstat (limited to 'slixmpp/plugins/xep_0363/stanza.py')
-rw-r--r--slixmpp/plugins/xep_0363/stanza.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/slixmpp/plugins/xep_0363/stanza.py b/slixmpp/plugins/xep_0363/stanza.py
index 4795f96d..a57c5fb0 100644
--- a/slixmpp/plugins/xep_0363/stanza.py
+++ b/slixmpp/plugins/xep_0363/stanza.py
@@ -35,4 +35,14 @@ class Header(ElementBase):
plugin_attrib = 'header'
name = 'header'
namespace = 'urn:xmpp:http:upload:0'
+ plugin_multi_attrib = 'headers'
interfaces = {'name', 'value'}
+
+ def get_value(self):
+ return self.xml.text
+
+ def set_value(self, value):
+ self.xml.text = value
+
+ def del_value(self):
+ self.xml.text = ''