~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/vocabularies.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-11-14 02:53:28 UTC
  • mfrom: (14272.2.5 ec2-update)
  • Revision ID: launchpad@pqm.canonical.com-20111114025328-xio34p32t3rzciwh
[r=lifeless][no-qa] apt-get update ec2 before running tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
886
886
            return 'Search'
887
887
 
888
888
 
889
 
class ValidPersonOrClosedTeamVocabulary(TeamVocabularyMixin,
890
 
                                ValidPersonOrTeamVocabulary):
891
 
    """The set of people and closed teams in Launchpad.
892
 
 
893
 
    A closed team is one for which the subscription policy is either
894
 
    RESTRICTED or MODERATED.
895
 
    """
896
 
 
897
 
    @property
898
 
    def is_closed_team(self):
899
 
        return True
900
 
 
901
 
    @property
902
 
    def extra_clause(self):
903
 
        return Person.subscriptionpolicy.is_in(CLOSED_TEAM_POLICY)
904
 
 
905
 
 
906
889
class ValidTeamMemberVocabulary(TeamVocabularyMixin,
907
890
                                ValidPersonOrTeamVocabulary):
908
891
    """The set of valid members of a given team.