team

class gratipay.models.package.team.Team[source]

A Package can have a Team associated with it.

team

A computed attribute, the Team linked to this package if there is one, otherwise None. Makes a database call.

load_team(cursor)[source]

Given a database cursor, return a Team if there is one linked to this package, or None if not.

get_or_create_linked_team(cursor, owner)[source]

Given a db cursor and a Participant, return a Team.

Given a db cursor, unlink the team associated with this package (it’s a bug if called with no team linked).