#NEWLINE# def register_to_hub( self , hub ) : #NEWLINE# #INDENT# dfilter = ( lambda x : ( x . sender . data in self . _artists ) ) #NEWLINE# dcfilter = ( lambda x : ( x . data in self . _artists ) ) #NEWLINE# subfilter = ( lambda x : ( x . subset in self . _artists ) ) #NEWLINE# hub . subscribe ( self , msg . SubsetCreateMessage , handler = self . _add_subset , filter = dfilter ) #NEWLINE# hub . subscribe ( self , msg . SubsetUpdateMessage , handler = self . _update_subset , filter = subfilter ) #NEWLINE# hub . subscribe ( self , msg . SubsetDeleteMessage , handler = self . _remove_subset ) #NEWLINE# hub . subscribe ( self , msg . DataUpdateMessage , handler = self . _update_data , filter = dfilter ) #NEWLINE# hub . subscribe ( self , msg . DataCollectionDeleteMessage , handler = self . _remove_data ) #NEWLINE# hub . subscribe ( self , msg . NumericalDataChangedMessage , handler = self . _numerical_data_changed ) #NEWLINE# hub . subscribe ( self , msg . ComponentReplacedMessage , handler = self . _on_component_replaced )