summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins
diff options
context:
space:
mode:
authorNathan Fritz <fritzy@netflint.net>2009-10-19 05:18:36 +0000
committerNathan Fritz <fritzy@netflint.net>2009-10-19 05:18:36 +0000
commit14331e2c963fdc893fbe1cdbbc21e597f9d80ea4 (patch)
tree799e29c81a92d5a7b63333c88726f70cd3d56bbd /sleekxmpp/plugins
parent349b1c0b283cc417fe4a51da4d111a7118416cde (diff)
downloadslixmpp-14331e2c963fdc893fbe1cdbbc21e597f9d80ea4.tar.gz
slixmpp-14331e2c963fdc893fbe1cdbbc21e597f9d80ea4.tar.bz2
slixmpp-14331e2c963fdc893fbe1cdbbc21e597f9d80ea4.tar.xz
slixmpp-14331e2c963fdc893fbe1cdbbc21e597f9d80ea4.zip
* added form update
Diffstat (limited to 'sleekxmpp/plugins')
-rw-r--r--sleekxmpp/plugins/xep_0004.py6
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: