#NEWLINE# def __new__( mcs , name , bases , params ) : #NEWLINE# #INDENT# 'Register an Alert Class in self.' #NEWLINE# source = params . get ( 'source' ) #NEWLINE# cls = super ( AlertFabric , mcs ) . __new__ ( mcs , name , bases , params ) #NEWLINE# if bases : #NEWLINE# #INDENT# mcs . alerts [ source ] = cls #NEWLINE# LOGGER . info ( 'Register Alert: %s' , source ) #NEWLINE# #UNINDENT# return cls