Lines Matching defs:Query
433 class Query(object):
434 """General Query object. It defines various constants and provides for
435 marshalling a Query into and out of a string format."""
468 assert self.return_type == Query.RETURN_PACKAGES or \
469 self.return_type == Query.RETURN_ACTIONS
483 return a Query object from that string."""
517 if return_type != Query.RETURN_PACKAGES and \
518 return_type != Query.RETURN_ACTIONS:
520 return Query(text, case_sensitive, return_type,
570 if self.lc.return_type == Query.RETURN_ACTIONS:
599 if self.return_type == Query.RETURN_ACTIONS:
600 key = Query.return_action_to_key
615 self.return_type = Query.RETURN_PACKAGES
639 if self.return_type == Query.RETURN_ACTIONS:
674 if self.return_type == Query.RETURN_PACKAGES:
719 self.return_type = Query.RETURN_PACKAGES
742 Query.RETURN_EITHER:
744 elif return_type == Query.RETURN_PACKAGES and \
745 current_type == Query.RETURN_ACTIONS:
761 Query.RETURN_PACKAGES, self.query.return_type)
787 self.return_type = Query.RETURN_ACTIONS
805 return "Phrase Query:'" + self.full_str + "'"
882 The "query" parameter is the Query object which contains the
890 self.return_type = Query.RETURN_ACTIONS
913 assert self.query.return_type == Query.RETURN_ACTIONS
961 if self.query.return_type == Query.RETURN_ACTIONS:
963 (1, Query.RETURN_ACTIONS,
971 (1, Query.RETURN_PACKAGES, fmri.PkgFmri(pfmri))
1040 self.return_type = Query.RETURN_ACTIONS