~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/answers/doc/notifications.txt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-05-09 22:53:33 UTC
  • mfrom: (12959.4.23 anwers-api-0)
  • Revision ID: launchpad@pqm.canonical.com-20110509225333-lu5q3l2zce8erpbx
[r=benji][bug=780078] Export answer contact management over the API.

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
    >>> from lp.services.worlddata.interfaces.language import ILanguageSet
69
69
    >>> ubuntu_team = getUtility(IPersonSet).getByName('ubuntu-team')
70
70
    >>> ubuntu_team.addLanguage(getUtility(ILanguageSet)['en'])
71
 
    >>> ubuntu.addAnswerContact(ubuntu_team)
 
71
    >>> ubuntu.addAnswerContact(ubuntu_team, ubuntu_team.teamowner)
72
72
    True
73
73
 
74
74
And assign this question to Foo Bar, so that he will also receive
699
699
    # supported in Ubuntu.
700
700
 
701
701
    >>> salgado = getUtility(IPersonSet).getByName('salgado')
702
 
    >>> ubuntu.addAnswerContact(salgado)
 
702
    >>> ubuntu.addAnswerContact(salgado, salgado)
703
703
    True
704
704
 
705
705
    >>> sorted([lang.code for lang in ubuntu.getSupportedLanguages()])