<s> import interfaces <EOL> class CommandSubmitter : <EOL> def __init__ ( self , if_name , code ) : <EOL> self . interface_name = if_name <EOL> self . code = code <EOL> def send_message ( self , msg ) : <EOL> interface = interfaces . get ( self . interface_name ) <EOL> return interface . send_message ( self , msg ) <EOL> def get_display_name ( self ) : <EOL> interface = interfaces . get ( self . interface_name ) <EOL> return interface . get_display_name ( self ) <EOL> def __unicode__ ( self ) : <EOL> return unicode ( self . get_display_name ( ) ) <EOL> def __eq__ ( self , other ) : <EOL> return hash ( self ) == hash ( other ) <EOL> def __hash__ ( self ) : <EOL> return hash ( str ( self . interface_name ) + str ( self . code ) ) </s>
