def __init__(self, **kwargs):
        """Object init
        
        Kwargs:
            [see sparc.event.event.SparcEvent]
            query: IQuery object
            results: IQueryResultSet object
        """
        super(QueryEvent, self).__init__(**kwargs)
        self.query = kwargs['query'].query
        if not IQueryResultSet.providedBy(kwargs['results']):
            raise ValidationError('expected IQueryResultSet for results, got: {}'.format("'" + str(kwargs['results']) + "'"))
        self.results = kwargs['results']
def __init__ ( self , ** kwargs ) : super ( QueryEvent , self ) . __init__ ( ** kwargs ) self . query = kwargs [ 'query' ] . query if not IQueryResultSet . providedBy ( kwargs [ 'results' ] ) : raise ValidationError ( 'expected IQueryResultSet for results, got: {}' . format ( "'" + str ( kwargs [ 'results' ] ) + "'" ) ) self . results = kwargs [ 'results' ]
Object init
        
        Kwargs:
            [see sparc.event.event.SparcEvent]
            query: IQuery object
            results: IQueryResultSet object