~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

Merge db-devel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1917
1917
                        Upper(Team.displayname),
1918
1918
                        Upper(Team.name))
1919
1919
 
 
1920
    def anyone_can_join(self):
 
1921
        open_types = (
 
1922
            TeamSubscriptionPolicy.OPEN,
 
1923
            TeamSubscriptionPolicy.DELEGATED
 
1924
            )
 
1925
        return (self.subscriptionpolicy in open_types)
 
1926
 
1920
1927
    def _getMappedParticipantsLocations(self, limit=None):
1921
1928
        """See `IPersonViewRestricted`."""
1922
1929
        return PersonLocation.select("""