web/form.py
branchstable
changeset 1843 646c2dd1f03e
parent 1756 42d87dedd631
child 1855 4e2eeb88780f
equal deleted inserted replaced
1842:c7a22540d6f7 1843:646c2dd1f03e
   370         qname = self.form_field_name(field)
   370         qname = self.form_field_name(field)
   371         if qname in self.form_previous_values:
   371         if qname in self.form_previous_values:
   372             return self.form_previous_values[qname]
   372             return self.form_previous_values[qname]
   373         if qname in self.req.form:
   373         if qname in self.req.form:
   374             return self.req.form[qname]
   374             return self.req.form[qname]
       
   375         if field.name in self.req.form:
       
   376             return self.req.form[field.name]
   375         return None
   377         return None
   376 
   378 
   377     def form_field_value(self, field, load_bytes=False):
   379     def form_field_value(self, field, load_bytes=False):
   378         """return field's *typed* value"""
   380         """return field's *typed* value"""
   379         value = field.initial
   381         value = field.initial