~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/doc/person.txt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-05-23 18:43:31 UTC
  • mfrom: (13084.2.6 page-match-rewrite-url)
  • Revision ID: launchpad@pqm.canonical.com-20110523184331-dhd2c7cgfuu49epw
[r=sinzui][bug=784273] Adds facility to the PageMatch to handle bad
        URIs

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
not Launchpad users.
7
7
 
8
8
    >>> from zope.component import getUtility
9
 
    >>> from canonical.launchpad.interfaces.emailaddress import (
10
 
    ...     IEmailAddressSet)
 
9
    >>> from canonical.launchpad.interfaces.emailaddress import IEmailAddressSet
11
10
    >>> from canonical.launchpad.webapp.testing import verifyObject
12
11
    >>> from lp.registry.interfaces.person import (
13
12
    ...     IHasStanding,
84
83
start with the word "when" followed by a description of the action that
85
84
caused the entry to be created.
86
85
 
87
 
    >>> from canonical.launchpad.interfaces.emailaddress import (
88
 
    ...     EmailAddressStatus)
 
86
    >>> from canonical.launchpad.interfaces.emailaddress import EmailAddressStatus
89
87
    >>> from lp.registry.interfaces.person import PersonCreationRationale
90
88
    >>> p, email = personset.createPersonAndEmail(
91
89
    ...     'randomuser@randomhost.com', PersonCreationRationale.POFILEIMPORT,
764
762
    >>> print_people(personset.find('ubuntu'))
765
763
    Mirror Administrators (ubuntu-mirror-admins): []
766
764
    Sigurd Gartmann (sigurd-ubuntu): [u'sigurd-ubuntu@brogar.org']
 
765
    Ubuntu branches (ubuntu-branches): []
767
766
    Ubuntu Doc Team (doc): [u'doc@lists.ubuntu.com']
768
767
    Ubuntu Gnome Team (name18): []
769
768
    Ubuntu Security Team (ubuntu-security): []
770
769
    Ubuntu Team (ubuntu-team): [u'support@ubuntu.com']
771
770
    Ubuntu Technical Board (techboard): []
772
771
    Ubuntu Translators (ubuntu-translators): []
 
772
    Ubuntu-branches-owner (ubuntu-branches-owner):
 
773
      [u'ubuntu-branches-owner@example.com']
773
774
 
774
775
    >>> print_people(personset.find('steve.alexander'))
775
776
    Steve Alexander (stevea): [u'steve.alexander@ubuntulinux.com']
1094
1095
The method does not return inactive projects.
1095
1096
 
1096
1097
    >>> login('foo.bar@canonical.com')
1097
 
    >>> from lp.app.interfaces.launchpad import ILaunchpadCelebrities
 
1098
    >>> from canonical.launchpad.interfaces.launchpad import (
 
1099
    ...     ILaunchpadCelebrities)
1098
1100
    >>> registry_member = factory.makePerson()
1099
1101
    >>> celebs = getUtility(ILaunchpadCelebrities)
1100
1102
    >>> registry = celebs.registry_experts