#NEWLINE# def __getattr__( self , attr ) : #NEWLINE# #INDENT# '\n        Make a dynamic method for add messages to specific events\n        like add_event_<eventname>(text="Hello")\n\n        Examples:\n            response.add_foo(text="bar")\n\n        This sets event to "foo" and put "bar" as content.\n        ' #NEWLINE# res = self . _rx_event . search ( attr ) #NEWLINE# if ( not res ) : #NEWLINE# #INDENT# return super ( Sse , self ) . __getattr__ ( attr ) #NEWLINE# #UNINDENT# return functools . partial ( self . add_message , event = res . group ( 1 ) )