Пример #1
0
 def query(self, *query):
     """ Furtherly reduce the query response by matching it against
     another query, e.g. response.query(attrs.Instrument('aia')). """
     query = and_(*query)
     return QueryResponse(
         attrs.filter_results(query, self), self.queryresult
     )
Пример #2
0
 def search(self, *query):
     """ Furtherly reduce the query response by matching it against
         another query, e.g. response.search(attrs.Instrument('aia')). """
     query = and_(*query)
     return QueryResponse(
                          attrs.filter_results(query, self), self.queryresult
                          )