l.a.m.q.Question(SQLBase, BugLinkTargetMixin) : class documentation

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

See IQuestion.
Method target See IQuestion.
Method followup_subject See IMessageTarget.
Method isSubscribed See IQuestion.
Method setStatus See IQuestion.
Method addComment See IQuestion.
Method can_request_info See IQuestion.
Method requestInfo See IQuestion.
Method can_give_info See IQuestion.
Method giveInfo See IQuestion.
Method can_give_answer See IQuestion.
Method giveAnswer See IQuestion.
Method linkFAQ See IQuestion.
Method can_confirm_answer See IQuestion.
Method confirmAnswer See IQuestion.
Method canReject See IQuestion.
Method reject See IQuestion.
Method expireQuestion See IQuestion.
Method can_reopen See IQuestion.
Method reopen See IQuestion.
Method subscribe See IQuestion.
Method unsubscribe See IQuestion.
Method getDirectSubscribers See IQuestion.
Method getDirectSubscribersWithDetails See IQuestion.
Method getIndirectSubscribers See IQuestion.
Method getRecipients See IQuestion.
Method direct_recipients See IQuestion.
Method indirect_recipients See IQuestion.
Method bugs Undocumented
Method createBugLink See BugLinkTargetMixin.
Method deleteBugLink See BugLinkTargetMixin.
Method setCommentVisibility See IQuestion.
Method _settarget See Question.target.
Method _giveAnswer Implementation of _giveAnswer that doesn't trigger notifications.
Method _newMessage Create a new QuestionMessage, link it to this question and update

Inherited from SQLBase:

Method __init__ Extended version of the SQLObjectBase constructor.
Method __repr__ Undocumented
Method destroySelf Undocumented
Method __eq__ Equality operator.
Method __ne__ Inverse of __eq__.
Method __storm_invalidated__ Flush cached properties.
Class Method _get_store Undocumented

Inherited from BugLinkTargetMixin:

Method linkBug See IBugLinkTarget.
Method unlinkBug See IBugLinkTarget.
def target(self):
See IQuestion.
def _settarget(self, question_target):
See Question.target.
@property
def followup_subject(self):
See IMessageTarget.
def isSubscribed(self, person):
See IQuestion.
@notify_question_modified()
def setStatus(self, user, new_status, comment, datecreated=None):
See IQuestion.
@notify_question_modified()
def addComment(self, user, comment, datecreated=None):
See IQuestion.
@property
def can_request_info(self):
See IQuestion.
@notify_question_modified()
def requestInfo(self, user, question, datecreated=None):
See IQuestion.
@property
def can_give_info(self):
See IQuestion.
@notify_question_modified()
def giveInfo(self, reply, datecreated=None):
See IQuestion.
@property
def can_give_answer(self):
See IQuestion.
@notify_question_modified()
def giveAnswer(self, user, answer, datecreated=None):
See IQuestion.
def _giveAnswer(self, user, answer, datecreated):
Implementation of _giveAnswer that doesn't trigger notifications.
@notify_question_modified()
def linkFAQ(self, user, faq, comment, datecreated=None):
See IQuestion.
@property
def can_confirm_answer(self):
See IQuestion.
@notify_question_modified()
def confirmAnswer(self, comment, answer=None, datecreated=None):
See IQuestion.
def canReject(self, user):
See IQuestion.
@notify_question_modified()
def reject(self, user, comment, datecreated=None):
See IQuestion.
@notify_question_modified()
def expireQuestion(self, user, comment, datecreated=None):
See IQuestion.
@property
def can_reopen(self):
See IQuestion.
@notify_question_modified()
def reopen(self, comment, datecreated=None):
See IQuestion.
def subscribe(self, person, subscribed_by=None):
See IQuestion.
def unsubscribe(self, person, unsubscribed_by):
See IQuestion.
def getDirectSubscribers(self):
See IQuestion.

This method is sorted so that it iterates like direct_recipients.

def getDirectSubscribersWithDetails(self):
See IQuestion.
def getIndirectSubscribers(self):
See IQuestion.

This method adds the assignee and is sorted so that it iterates like indirect_recipients.

def getRecipients(self):
See IQuestion.
@cachedproperty
def direct_recipients(self):
See IQuestion.
@cachedproperty
def indirect_recipients(self):
See IQuestion.
def _newMessage(self, owner, content, action, new_status, subject=None, datecreated=None, update_question_dates=True):
Create a new QuestionMessage, link it to this question and update the question's status to new_status.

When update_question_dates is True, the question's datelastquery or datelastresponse attribute is updated to the message creation date. The datelastquery attribute is updated when the message owner is the same than the question owner, otherwise the datelastresponse is updated.

Unknown Field: ownerAn IPerson.
Unknown Field: contentA string or an IMessage. When it's an IMessage, the owner must be the same than the :owner: parameter.
Unknown Field: actionA QuestionAction.
Unknown Field: new_statusA QuestionStatus.
Unknown Field: subjectThe Message subject, default to followup_subject. Ignored when content is an IMessage.
Unknown Field: datecreatedA datetime object which will be used as the Message creation date. Ignored when content is an IMessage.
Unknown Field: update_question_datesA bool.
@property
def bugs(self):
Undocumented
def createBugLink(self, bug, props=None):
See BugLinkTargetMixin.
def deleteBugLink(self, bug):
See BugLinkTargetMixin.
def setCommentVisibility(self, user, comment_number, visible):
See IQuestion.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.