l.r.b.p.PollView(BasePollView) : class documentation

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

A view class to display the results of a poll.
Method initialize Undocumented
Method getVotesByOption Return the number of votes the given option received.
Method getPairwiseMatrixWithHeaders Return the pairwise matrix, with headers being the option's

Inherited from BasePollView:

Method setUpTokenAndVotes Set up the token and votes to be displayed.
Method setUpTokenAndVotesForNonSecretPolls Get the votes of the logged in user in this poll.
Method setUpTokenAndVotesForSecretPolls Get the votes with the token provided in the form.
Method userCanVote Return True if the user is/was eligible to vote on this poll.
Method userVoted Return True if the user voted on this poll.
Method isCondorcet Return True if this poll's type is Condorcet.
Method isSimple Return True if this poll's type is Simple.
Method isSecret Return True if this is a secret poll.
def initialize(self):
Undocumented
def getVotesByOption(self, option):
Return the number of votes the given option received.
def getPairwiseMatrixWithHeaders(self):
Return the pairwise matrix, with headers being the option's names.
API Documentation for Launchpad, generated by pydoctor at 2018-12-19 00:00:19.