#NEWLINE# def register( self , what , obj ) : #NEWLINE# #INDENT# '\n        Registering a plugin\n\n        Params\n        ------\n        what: Nature of the plugin (backend, instrumentation, repo)\n        obj: Instance of the plugin\n        ' #NEWLINE# name = obj . name #NEWLINE# version = obj . version #NEWLINE# enable = obj . enable #NEWLINE# if ( enable == 'n' ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# key = Key ( name , version ) #NEWLINE# self . plugins [ what ] [ key ] = obj