def value_for_name(self, name):
    for field in self.field:
        if (field.name == name):
            return field.text
    raise FieldMissing(('There is no field for %s' % name))
def value_for_name(self, name):
    for field in self.field:
        if (field.name == name):
            return field.text
    raise FieldMissing(('There is no field for %s' % name))