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

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

The set of PollOption objects.
Method new Create a new PollOption.
Method selectByPoll Return all PollOptions of the given poll.
Method getByPollAndId Return the PollOption with the given id.
def new(poll, name, title, active=True):
Create a new PollOption.
def selectByPoll(poll, only_active=False):
Return all PollOptions of the given poll.

If :only_active is True, then return only the active polls.

def getByPollAndId(poll, id, default=None):
Return the PollOption with the given id.

Return :default if there's no PollOption with the given id or if that PollOption is not in the given poll.

API Documentation for Launchpad, generated by pydoctor at 2019-09-17 00:00:34.