l.r.i.p.IPollSet(Interface) : interface documentation

Part of lp.registry.interfaces.poll View In Hierarchy

The set of Poll objects.
Method new Create a new Poll for the given team.
Method selectByTeam Return all Polls for the given team, filtered by status.
Method getByTeamAndName Return the Poll for the given team with the given name.
def new(team, name, title, proposition, dateopens, datecloses, secrecy, allowspoilt, poll_type=PollAlgorithm.SIMPLE):
Create a new Poll for the given team.
def selectByTeam(team, status=PollStatus.ALL, orderBy=None, when=None):
Return all Polls for the given team, filtered by status.

:status: is a sequence containing as many values as you want from
PollStatus.

:orderBy: can be either a string with the column name you want to sort
or a list of column names as strings.
If no orderBy is specified the results will be ordered using the
default ordering specified in Poll._defaultOrder.

The optional :when argument is used only by our tests, to test if the
poll is/was/will-be open at a specific date.
def getByTeamAndName(team, name, default=None):
Return the Poll for the given team with the given name.

Return :default if there's no Poll with this name for that team.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.