~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Curtis Hovey
  • Date: 2011-12-08 22:41:00 UTC
  • mto: This revision was merged to the branch mainline in revision 14466.
  • Revision ID: curtis.hovey@canonical.com-20111208224100-j3h6o72af1fcjl9k
Updated templates to use is_team property.

Show diffs side-by-side

added added

removed removed

Lines of Context:
388
388
 
389
389
As we said above, the Person class is overloaded to represent teams so
390
390
we may have Person objects which are, in fact, teams. To find out
391
 
whether a given object is a person or a team we can use the isTeam()
392
 
method of IPerson or check if the object provides the ITeam interface.
 
391
whether a given object is a person or a team we can use the is_team
 
392
property of IPerson or check if the object provides the ITeam interface.
393
393
 
394
394
    >>> from lp.registry.interfaces.person import ITeam
395
395
    >>> ddaa = personset.getByName('ddaa')