#NEWLINE# @ classmethod #NEWLINE# def register( cls , compositor ) : #NEWLINE# #INDENT# defined_groups = [ op . group for op in cls . definitions ] #NEWLINE# if ( compositor . group in defined_groups ) : #NEWLINE# #INDENT# cls . definitions . pop ( defined_groups . index ( compositor . group ) ) #NEWLINE# #UNINDENT# cls . definitions . append ( compositor ) #NEWLINE# if ( compositor . operation not in cls . operations ) : #NEWLINE# #INDENT# cls . operations . append ( compositor . operation )