• 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.

Bug when used with Dakar: vote storage

When used with Dakar and with TWiki:Codev.AutomaticAttachments enabled, the vote stores are visible.

In TWiki:Codev.RecommendedStorageOfPluginData the recomendation is to prefix the name of such stores with an underbar - "_" - so that TWiki:Codev.AutomaticAttachments does not pick them up.

Fixed in svn 6825 MD.

Bug in handling of arguments - quotes

If the example given has double quotes changes to single quotes it breaks the plugin


%VOTE{id="FavoritMeal" style="bar" select1="Drink" options1='Beer,Wine,Milk,Water'}%
appears as this:

%VOTE{id="FavoritMeal" style="bar" select1="Drink" options1='Beer,Wine,Milk,Water'}%

(when VotePlugin is enabled, it simply doens't appear at all)

Note, that single quoted arguments are no proper TWikiML. Fixed missing error message in svn 6825. MD

Bug in handling of arguments - special characters


%VOTE{id="BudgetPercent" style="bar" select1="How much of your time is spent working with wikis?" options1="Less than 3%,3% to 5'%,5% to 7%,7% to 10%,More than '10% "}%

appears as this: %VOTE{id="BudgetPercent" style="bar" select1="How much of your time is spent working with wikis?" options1="Less than 3%,3% to 5'%,5% to 7%,7% to 10%,More than '10% "}%

(when VotePlugin is enabled, everything after the first '%' in the options string appears in the topic and there is no vote or display of results)

Actually this is not a bug in the VotePlugin but a limitation of the argument parser in the core engine. Added the well-known, much hated $percnt and friends pseudo vars to svn 6855.


Bug in code

When the percentage of the votes are displayed therey are displayed as pure number, there is nothing to indicate this is a percentage.

This is not a bug. This is a feature request. MD

Bug in documentation, or possibly code.

The documentation says that choices of style for displaying the results are 'bar', 'perc(ent)' or 'total'.

  • If 'bar' is selected then then both 'bar' and 'percent' are displayed.
  • If 'perc' is selected then _only the percent is displayed.
  • If 'total' is selected then only the number of votes is displayed.

There is no way to display the bar, percentage and total number of votes all together.

The code is based on "if-equals" rather than "if-contains".

Changing the code to "if-contains" would allow the user to select the combination and would better reflect what is in the documentation. These alternatives would be available to the user:

  • bar - display only the bar, no details on how many voted
  • bar,prec - display bar and percent. No details on how many voted. This is the action that curently results from using just bar
  • bar,perc,total - display bar, perentage and total number of votes. This is the option that is normally reported in poslls and should be made the default.
  • bar,total - display bar and total number of votes
  • total - Just the total, work out rest for yourself
  • perc - Just the percentage, but who knows how many voted.
  • perc,total - Just the numbers, no graphic.

This is not a bug. This is a feature request. MD

done in svn 6855.

Summary Multiple bugs in Vote plugin
ReportedBy AntonAylward
AppliesTo Extension
Component VotePlugin
Priority Normal
CurrentState Closed

Checkins 6825 6855
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r6 - 2005-11-21 - MichaelDaum
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback