* added form update

This commit is contained in:
Nathan Fritz 2009-10-19 05:18:36 +00:00
parent 349b1c0b28
commit 14331e2c96

View file

@ -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: