Part of lp.registry.interfaces.poll View In Hierarchy
|Method||newToken||Return a token that was never used in the Vote table.|
|Method||new||Create a new Vote.|
|Method||getByToken||Return the list of votes with the given token.|
|Method||getVotesByOption||Return the number of votes the given option received.|
For polls whose type is SIMPLE, this list will contain a single vote, because in SIMPLE poll only one option can be choosen.