#NEWLINE# def yes_no( self , prompt , name = 'yes_no' , default = True ) : #NEWLINE# #INDENT# fs = self . add_fieldset ( name ) #NEWLINE# fs . set_attribute ( 'class_' , 'yes_no' ) #NEWLINE# for ( i , item ) in enumerate ( [ 'Yes' , 'No' ] ) : #NEWLINE# #INDENT# inp = self . dtd . Input ( type = 'radio' , name = name , value = i ) #NEWLINE# if ( ( i == 0 ) and default ) : #NEWLINE# #INDENT# inp . checked = 'checked' #NEWLINE# #UNINDENT# if ( ( i == 1 ) and ( not default ) ) : #NEWLINE# #INDENT# inp . checked = 'checked' #NEWLINE# #UNINDENT# fs . append ( inp ) #NEWLINE# fs . append ( check_object ( item ) ) #NEWLINE# #UNINDENT# return fs