~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/answers/interfaces/question.py

Merged question-unsubscribe-187093 into question-subscribe-187093.

Show diffs side-by-side

added added

removed removed

Lines of Context:
516
516
        return a HTTP Error 401: Unauthorized error for non-admin callers.
517
517
        """
518
518
 
519
 
    @operation_parameters(
520
 
        person=Reference(IPerson, title=_('Person'), required=False))
521
 
    @call_with(unsubscribed_by=REQUEST_USER)
522
 
    @export_write_operation()
523
 
    @operation_for_version("devel")
524
 
    def removeAnswerContact(person, unsubscribed_by):
525
 
        """Remove the `person` as an answer contact from the question target.
526
 
 
527
 
        :param person: the answer contact.
528
 
        :param unsubscribed_by: the person who removed the contact.
529
 
        """
530
 
 
531
519
 
532
520
# These schemas are only used by browser/question.py and should really live
533
521
# there. See Bug #66950.