#NEWLINE# def _generate_raw_domid( tagname , attributes , bind ) : #NEWLINE# #INDENT# if ( bind is not None ) : #NEWLINE# #INDENT# basis = bind . flattened_name ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# basis = attributes . get ( 'name' ) #NEWLINE# #UNINDENT# if ( not basis ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( ( tagname == 'input' ) and ( attributes . get ( 'type' ) in ( 'checkbox' , 'radio' ) ) and isinstance ( bind , Array ) ) : #NEWLINE# #INDENT# suffix = _sanitize_domid_suffix ( attributes . get ( 'value' , '' ) ) #NEWLINE# if suffix : #NEWLINE# #INDENT# basis += ( '_' + basis ) #NEWLINE# #UNINDENT# #UNINDENT# return basis