Part of lp.answers.interfaces.questiontarget View In Hierarchy
Known subclasses: lp.answers.interfaces.webservice.IQuestionTarget
Method | newQuestion | Create a new question. |
Method | createQuestionFromBug | Create and return a Question from a Bug. |
Method | addAnswerContact | Add a new answer contact. |
Method | removeAnswerContact | Remove an answer contact. |
A new question is created with status OPEN.
The owner and all of the target answer contacts will be subscribed to the question.
Unknown Field: owner | An IPerson. | |
Unknown Field: title | A string. | |
Unknown Field: description | A string. | |
Unknown Field: language | An ILanguage. If that parameter is omitted, the question is assumed to be created in English. | |
Unknown Field: datecreated | A datetime object that will be used for the datecreated attribute. Defaults to lp.services.database.constants.UTC_NOW. |
The bug's title and description are used as the question title and description. The bug owner is the question owner. The question is automatically linked to the bug.
Note that bug messages are copied to the question, but attachments are not. The question is the same age as the bug, though its datelastresponse attribute is current to signify the question is active.
Unknown Field: bug | An IBug. |
Parameters | person | An IPerson . |
subscribed_by | The user making the change. | |
Returns | True if the person was added, False if the person already is an answer contact. | |
Raises | AddAnswerContactError | When the person or team does no have a preferred language. |
Parameters | person | An IPerson . |
subscribed_by | The user making the change. | |
Returns | True if the person was removed, False if the person wasn't an answer contact. |