Vote

Description

Simple Vote macro for MoinMoin.
    Author: Martin Stone <martins@evos.net>
    Hacked by: John Cocula (john@cocula.com)
               Thomas Waldmann
        Updated by: Akshat Aranya (aaranya@gmail.com)

    Usage:
        [[Vote(pageName, voteTitle, candidate1, ...)]]

    E.g:
        [[Vote(MyBlog, Do polls work?, yes)]]
    
    Just like Martin's Vote macro, except you must specify the name of the
    page on which to vote "appears."  Without this information, when a user
    votes from an included page, after pressing the Vote button they are
    returned to the included page, not the main page.  Also different is
    that the current number of votes is hidden until the user has voted.
    Lastly, it is possible to have a poll that only has one choice, which
    is kind of funny.  The remainder of the description is Martin's:

    You can have multiple votes on one page (so long as the titles are unique).
    You can add candidates after a vote has started, but note that renaming 
    candidates will lose the votes (and not allow users to recast their votes).
    Changing the vote title creates a new vote.

    Vote data is stored in data_dir/pages/pagename/votes 
    (i.e. alongside the attachments directory for a page).

    You can customise the appearance by defining the following CSS styles:
        table.vote 
        td.votelogin (for "must login" message)

Download & Release Notes

Download

Release Version

Moin Version

Release Notes

Vote_1.3.py

1.3.4+

Updated Martin Stone's and John Cocula's vote macro to work with 1.3.4. See attachment for details

vote2_moin12.py

1.2(2)

cleaned up version of Martin Stone's vote macro

Usage

Example

License

Bugs

Known Bug: title must have less than 100 characters.

Discussion

MoinMoin: MacroMarket/Vote (last edited 2008-12-15 15:49:38 by 89-28-59-65)