'Return FormDefinition field created from an xml element.'

def from_elem(self, elem, layout=None):

    rval = super(FormDefinitionSelectFieldFactory, self).from_elem(elem, layout=layout)
    rval['type'] = self.__get_stored_field_type(string_as_bool(elem.get('checkboxes', 'false')))
    rval['selectlist'] = []
    for select_option in elem.findall('option'):
        value = select_option.get('value', None)
        assert (value is not None), 'Must    provide    a    "value"    for    a    select    option'
        rval['selectlist'].append(value)
    return rval
