#NEWLINE# def _fire_events( self ) : #NEWLINE# #INDENT# stack = self . stack . value #NEWLINE# if ( self . changeds . data . plus or self . changeds . data . minus ) : #NEWLINE# #INDENT# data = { #NEWLINE# #INDENT# 'new' : list ( self . changeds . data . plus ) , #NEWLINE# 'lost' : list ( self . changeds . data . minus ) , #NEWLINE# #UNINDENT# } #NEWLINE# tag = tagify ( 'change' , 'presence' ) #NEWLINE# route = { #NEWLINE# #INDENT# 'dst' : ( None , None , 'event_fire' ) , #NEWLINE# 'src' : ( None , stack . local . name , None ) , #NEWLINE# #UNINDENT# } #NEWLINE# msg = { #NEWLINE# #INDENT# 'route' : route , #NEWLINE# 'tag' : tag , #NEWLINE# 'data' : data , #NEWLINE# #UNINDENT# } #NEWLINE# self . event . value . append ( msg ) #NEWLINE# #UNINDENT# data = { #NEWLINE# #INDENT# 'present' : list ( self . aliveds . value ) , #NEWLINE# #UNINDENT# } #NEWLINE# tag = tagify ( 'present' , 'presence' ) #NEWLINE# route = { #NEWLINE# #INDENT# 'dst' : ( None , None , 'event_fire' ) , #NEWLINE# 'src' : ( None , stack . local . name , None ) , #NEWLINE# #UNINDENT# } #NEWLINE# msg = { #NEWLINE# #INDENT# 'route' : route , #NEWLINE# 'tag' : tag , #NEWLINE# 'data' : data , #NEWLINE# #UNINDENT# } #NEWLINE# self . event . value . append ( msg )