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

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

The set of Poll objects for a given team.
Attribute team The team of these polls.
Attribute title Polls Page Title
Method new Create a new Poll for this team.
Method getAll Return all Polls of this team.
Method getOpenPolls Return all Open Polls for this team ordered by the date they'll
Method getNotYetOpenedPolls Return all Not-Yet-Opened Polls for this team ordered by the date
Method getClosedPolls Return all Closed Polls for this team ordered by the date they
team =
The team of these polls.
title =
Polls Page Title
def new(name, title, proposition, dateopens, datecloses, secrecy, allowspoilt, poll_type=PollAlgorithm.SIMPLE):
Create a new Poll for this team.
def getAll():
Return all Polls of this team.
def getOpenPolls(when=None):
Return all Open Polls for this team ordered by the date they'll close.

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 getNotYetOpenedPolls(when=None):
Return all Not-Yet-Opened Polls for this team ordered by the date they'll open.

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 getClosedPolls(when=None):
Return all Closed Polls for this team ordered by the date they closed.

The optional :when argument is used only by our tests, to test if the poll is/was/will be open at a specific date.

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