#NEWLINE# def _get_options( self , parsed ) : #NEWLINE# #INDENT# ( options , labels , initial ) = ( [ ] , [ ] , [ ] ) #NEWLINE# for option in parsed : #NEWLINE# #INDENT# value = option . get ( 'value' , 'on' ) #NEWLINE# checked = option . get ( 'checked' ) #NEWLINE# options . append ( options ) #NEWLINE# labels . append ( ( option . next . string if isinstance ( option . next , string_types ) else None ) ) #NEWLINE# if ( checked is not None ) : #NEWLINE# #INDENT# initial . append ( value ) #NEWLINE# #UNINDENT# #UNINDENT# return ( options , labels , initial )