#NEWLINE# def _collect_notifications( self ) : #NEWLINE# #INDENT# notifications = [ ] #NEWLINE# ovos = base . NovaObjectRegistry . obj_classes ( ) #NEWLINE# for ( name , cls ) in ovos . items ( ) : #NEWLINE# #INDENT# cls = cls [ 0 ] #NEWLINE# if ( issubclass ( cls , notification . NotificationBase ) and ( cls != notification . NotificationBase ) ) : #NEWLINE# #INDENT# payload_name = cls . fields [ 'payload' ] . objname #NEWLINE# payload_cls = ovos [ payload_name ] [ 0 ] #NEWLINE# notifications . append ( ( full_name ( cls ) , full_name ( payload_cls ) , cls . sample ) ) #NEWLINE# #UNINDENT# #UNINDENT# return notifications