#NEWLINE# def emit( self , context ) : #NEWLINE# #INDENT# 'Send the notification.' #NEWLINE# assert self . payload . populated #NEWLINE# self . payload . obj_reset_changes ( recursive = False ) #NEWLINE# self . _emit ( self , event_type = self . event_type . to_notification_event_type_field ( ) , publisher_id = ( '%s:%s' % ( self . publisher . binary , self . publisher . host ) ) , payload = self . payload . obj_to_primitive ( ) )