diff options
author | Nathan Fritz <fritzy@netflint.net> | 2009-10-19 05:18:36 +0000 |
---|---|---|
committer | Nathan Fritz <fritzy@netflint.net> | 2009-10-19 05:18:36 +0000 |
commit | 14331e2c963fdc893fbe1cdbbc21e597f9d80ea4 (patch) | |
tree | 799e29c81a92d5a7b63333c88726f70cd3d56bbd /sleekxmpp/plugins/xep_0004.py | |
parent | 349b1c0b283cc417fe4a51da4d111a7118416cde (diff) | |
download | slixmpp-14331e2c963fdc893fbe1cdbbc21e597f9d80ea4.tar.gz slixmpp-14331e2c963fdc893fbe1cdbbc21e597f9d80ea4.tar.bz2 slixmpp-14331e2c963fdc893fbe1cdbbc21e597f9d80ea4.tar.xz slixmpp-14331e2c963fdc893fbe1cdbbc21e597f9d80ea4.zip |
* added form update
Diffstat (limited to 'sleekxmpp/plugins/xep_0004.py')
-rw-r--r-- | sleekxmpp/plugins/xep_0004.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sleekxmpp/plugins/xep_0004.py b/sleekxmpp/plugins/xep_0004.py index ee6646fa..cbc0a236 100644 --- a/sleekxmpp/plugins/xep_0004.py +++ b/sleekxmpp/plugins/xep_0004.py @@ -108,6 +108,12 @@ class Form(FieldContainer): form1.fields[field.var].addOption(option, label) return form1 + def update(self, form): + values = form.getValues() + for var in values: + if var in self.fields: + self.fields[var].setValue(self.fields[var]) + def getValues(self): result = {} for field in self.fields: |