def xsd_append_choices(parent_el, prop_handler, choices):
    choice_parent = append_child(parent_el, REST_MD_CHOICES_NAME)

    for choice in choices:
        append_child(choice_parent, REST_MD_CHOICE_NAME,
                     prop_handler.value_to_string(choice))

    return choice_parent
Appends a list of choice metadata elements.
dataset/ETHPy150Open jahlborn/appengine-rest-server/src/main/python/rest/__init__.py/xsd_append_choices