• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item5771: Provide a mechanism to clear votes

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension VotePlugin Enhancement Closed TWiki:Main/LynnwoodBrown n/a  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


Being as the votes are stored in a hidden db, it would be useful to provide a mechanism to clear out votes for a particular vote id. Obviously, this would require incorporation of access controls.

-- TWiki:Main/LynnwoodBrown - 11 Jul 2008

Propose this:

Resetting a Poll

Sometimes you want to be able to clear the results of a poll. You can do this by including the %RESETVOTE{"id"}%. If a user is authorised, then a button will be generated which, when clicked, will reset the results for that poll to initial conditions. Access to this feature is controlled using the CANRESETVOTES TWiki variable. This variable defines a list of wiki names and the id's of votes they are allowed to reset. You can use * as a wildcard in the vote IDs. For example, in a WebPreferences topic you can write
   * Set CANRESETVOTES = GeorgeWBush(*),RobertMugabe(zim),SimonCowell(*Idol, XFactor)
to allow:
  • George W. Bush to reset any vote he likes,
  • Robert Mugabe to reset the results of any vote with the id zim,
  • Simon Cowell to reset the results of all votes with an ID ending in Idol and any vote with the ID XFactor.
Note that it is important to finalise the setting, otherwise it can be overridden in individual topics by anyone with CHANGE access.

-- TWiki:Main/CrawfordCurrie - 08 Aug 2008

Looks good. I can't think of any other way to enable this feature and preserve appropriate permissions.

-- TWiki:Main.LynnwoodBrown - 08 Aug 2008

I did it slightly differently in the end. See the doc.

-- CrawfordCurrie - 08 Aug 2008

Re-opened for some tweaking

-- CrawfordCurrie - 10 Aug 2008

Added the $reset token to control placement of the reset.

-- CrawfordCurrie - 10 Aug 2008

Summary Provide a mechanism to clear votes
ReportedBy TWiki:Main.LynnwoodBrown

SVN Range TWiki-5.0.0, Wed, 09 Jul 2008, build 17004
AppliesTo Extension
Component VotePlugin
Priority Enhancement
CurrentState Closed
WaitingFor TWiki:Main/LynnwoodBrown
Checkins TWikirev:17369 TWikirev:17382 TWikirev:17406
TargetRelease n/a

Edit | Attach | Watch | Print version | History: r12 < r11 < r10 < r9 < r8 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r12 - 2010-10-12 - PeterThoeny
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback