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

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

A view class to where the user can vote on a poll.

If the user already voted, the current vote is displayed and the user can change it. Otherwise they can register their vote.

Method template Undocumented
Method initialize Process the form, if it was submitted.
Method processSimpleVotingForm Process the simple-voting form to change a user's vote or register
Method processCondorcetVotingForm Process the condorcet-voting form to change a user's vote or

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.
@property
def template(self):
Undocumented
def initialize(self):
Process the form, if it was submitted.
def processSimpleVotingForm(self):
Process the simple-voting form to change a user's vote or register a new one.

This method must not be called if the poll is not open.

def processCondorcetVotingForm(self):
Process the condorcet-voting form to change a user's vote or register a new one.

This method must not be called if the poll is not open.

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