Radio button inputs: multiple choice or true/false
TODO: allow order of choices to be randomized, following lon-capa spec. Use "location" attribute,
ie random, top, bottom.
'''
eid=element.get('id')
ifelement.get('type')=="MultipleChoice":
type="radio"
elifelement.get('type')=="TrueFalse":
type="checkbox"
else:
type="radio"
choices=[]
forchoiceinelement:
ifnotchoice.tag=='choice':
raiseException("[courseware.capa.inputtypes.choicegroup] Error only <choice> tags should be immediate children of a <choicegroup>, found %s instead"%choice.tag)
ctext=""
ctext+=''.join([etree.tostring(x)forxinchoice])# TODO: what if choice[0] has math tags in it?