l.a.i.w.IQuestionSet(IQuestionCollection) : interface documentation

Part of lp.answers.interfaces.webservice View In Hierarchy

A utility that contain all the questions published in Launchpad.
Attribute title Title
Method get Return the question with the given id.
Method findExpiredQuestions Return the questions that are expired.
Method getMostActiveProjects Return the list of projects that asked the most questions in
Method getOpenQuestionCountByPackages Return number of open questions for the list of packages.

Inherited from IQuestionCollection:

Method searchQuestions Return the questions from the collection matching search criteria.
Method getQuestionLanguages Return the set of ILanguage used by all the questions in the
title =
Title
@operation_parameters(Int(_('The id of the question to get'), True))
@operation_returns_entry(Interface)
@export_read_operation()
@export_operation_as('getByID')
@operation_for_version('devel')
def get(question_id, default=None):
Return the question with the given id.

Return :default: if no such question exists.

def findExpiredQuestions(days_before_expiration):
Return the questions that are expired.

Return all the questions in the Open or Needs information state, without an assignee or bug links, that did not receive any new comments in the last <days_before_expiration> days.

@collection_default_content(5)
def getMostActiveProjects(limit=5):
Return the list of projects that asked the most questions in the last 60 days.

It should only return projects that officially uses the Answer Tracker.

ParameterslimitThe number of projects to return.
def getOpenQuestionCountByPackages(packages):
Return number of open questions for the list of packages.
ParameterspackagesA list of IDistributionSourcePackage instances.
Returnsa dictionary, where the package is the key, and the number of open questions the value.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.