(self, ctx)
return res
run this searcher against the context given
run this searcher against the context given
run this searcher against the context given
def run(self, ctx):
        """ run this searcher against the context given"""
        res = self.cb(ctx)
        if res and res['results']:
            log_info("Got the following results from {0}:\n".format(self.name) +
                    "\n".join([str(r) for r in res['results']]))
        return res
def run ( self , ctx ) : res = self . cb ( ctx ) if res and res [ 'results' ] : log_info ( "Got the following results from {0}:\n" . format ( self . name ) + "\n" . join ( [ str ( r ) for r in res [ 'results' ] ] ) ) return res