l.a.m.q.QuestionSearch : class documentation

Part of lp.answers.model.question View In Hierarchy

Known subclasses: lp.answers.model.question.QuestionPersonSearch, lp.answers.model.question.QuestionTargetSearch, lp.answers.model.question.SimilarQuestionsSearch

Base object for searching questions.

The search parameters are specified at creation time and getResults() is used to retrieve the questions matching the search criteria.

Method __init__ Undocumented
Method getTargetConstraints Return the constraints related to the IQuestionTarget context.
Method getTableJoins Return the tables that should be joined for the constraints.
Method getMessageJoins Create the joins needed to select constraints on the messages by a
Method getProductJoins Create the joins needed to select constraints on projects by a
Method getActivePillarJoins Create the joins needed to select constraints on active pillars.
Method getConstraints Return a list of SQL constraints to use for this search.
Method getPrejoins Return a list of tables that should be prejoined on this search.
Method getPrejoinClauseTables Return a list of tables that are in the contraints
Method getOrderByClause Return the ORDER BY clause to use for this search's results.
Method getResults Return the questions that match this query.
def __init__(self, search_text=None, needs_attention_from=None, sort=None, status=QUESTION_STATUS_DEFAULT_SEARCH, language=None, product=None, distribution=None, sourcepackagename=None, projectgroup=None):
Undocumented
def getTargetConstraints(self):
Return the constraints related to the IQuestionTarget context.
def getTableJoins(self):
Return the tables that should be joined for the constraints.
def getMessageJoins(self, person):
Create the joins needed to select constraints on the messages by a particular person.
def getProductJoins(self):
Create the joins needed to select constraints on projects by a particular project group.
def getActivePillarJoins(self):
Create the joins needed to select constraints on active pillars.
def getConstraints(self):
Return a list of SQL constraints to use for this search.
def getPrejoins(self):
Return a list of tables that should be prejoined on this search.
def getPrejoinClauseTables(self):
Return a list of tables that are in the contraints
def getOrderByClause(self):
Return the ORDER BY clause to use for this search's results.
def getResults(self):
Return the questions that match this query.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.