summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0004/stanza/form.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2014-08-21 10:05:42 -0700
committerLance Stout <lancestout@gmail.com>2014-08-21 10:05:42 -0700
commitaabec8b993748866b9cf3f09ebb7ae7ce2ddc426 (patch)
tree94c4fb419567f86ca62db5ad936ce00505891081 /sleekxmpp/plugins/xep_0004/stanza/form.py
parente5e2fbb16b4d9c11fc676925c6a13943282a3c66 (diff)
downloadslixmpp-aabec8b993748866b9cf3f09ebb7ae7ce2ddc426.tar.gz
slixmpp-aabec8b993748866b9cf3f09ebb7ae7ce2ddc426.tar.bz2
slixmpp-aabec8b993748866b9cf3f09ebb7ae7ce2ddc426.tar.xz
slixmpp-aabec8b993748866b9cf3f09ebb7ae7ce2ddc426.zip
Fix some more Unicode in **kwargs issues in Py2.6
Diffstat (limited to 'sleekxmpp/plugins/xep_0004/stanza/form.py')
-rw-r--r--sleekxmpp/plugins/xep_0004/stanza/form.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0004/stanza/form.py b/sleekxmpp/plugins/xep_0004/stanza/form.py
index bbd8540f..f51e7f09 100644
--- a/sleekxmpp/plugins/xep_0004/stanza/form.py
+++ b/sleekxmpp/plugins/xep_0004/stanza/form.py
@@ -195,7 +195,14 @@ class Form(ElementBase):
fields = fields.items()
for var, field in fields:
field['var'] = var
- self.add_field(**field)
+ self.add_field(
+ var = field.get('var'),
+ label = field.get('label'),
+ desc = field.get('desc'),
+ required = field.get('required'),
+ value = field.get('value'),
+ options = field.get('options'),
+ type = field.get('type'))
def set_instructions(self, instructions):
del self['instructions']