~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/model/person.py

  • Committer: Abel Deuring
  • Date: 2011-05-03 13:38:30 UTC
  • mto: This revision was merged to the branch mainline in revision 12965.
  • Revision ID: abel.deuring@canonical.com-20110503133830-mym5s27sbvswiizj
new cached property Person.administrated_teams; Person.administrated_teams used in lp.bugs.browser.structuralsubscription.expose_.*_to_js() in order to avoid multiple calls of Person.getAdministratedTeams()

Show diffs side-by-side

added added

removed removed

Lines of Context:
1562
1562
        tm.setExpirationDate(expires, reviewer)
1563
1563
        tm.setStatus(status, reviewer, comment=comment)
1564
1564
 
 
1565
    @cachedproperty
 
1566
    def administrated_teams(self):
 
1567
        return list(self.getAdministratedTeams())
 
1568
 
1565
1569
    def getAdministratedTeams(self):
1566
1570
        """See `IPerson`."""
1567
1571
        owner_of_teams = Person.select('''