#NEWLINE# def __init__( self , scope ) : #NEWLINE# #INDENT# '\n        Constructor.\n\n        :param scope:\n        :return:\n        ' #NEWLINE# if ( scope not in self . SCOPES ) : #NEWLINE# #INDENT# raise InspectorQueryException ( 'Unknown scope: {0}. Must be one of: {1}' . format ( repr ( scope ) , ', ' . join ( self . SCOPES ) ) ) #NEWLINE# #UNINDENT# self . scope = ( '_' + scope ) #NEWLINE# self . db = DBHandle ( globals ( ) [ '__salt__' ] [ 'config.get' ] ( 'inspector.db' , '' ) ) #NEWLINE# self . local_identity = dict ( )