#NEWLINE# def set_name( self , value ) : #NEWLINE# #INDENT# allowed_chars = ( ( string . ascii_letters + string . digits ) + '-_' ) #NEWLINE# for ch in value : #NEWLINE# #INDENT# if ( ch not in allowed_chars ) : #NEWLINE# #INDENT# raise ValueError ( _ ( 'Names must only contain a-z,A-Z,0-9,-,_' ) ) #NEWLINE# #UNINDENT# #UNINDENT# self . __name = value