wiki:PollMacro

Create polls based on tickets or static arguments

Description

This plugin is a macro that adds polling functionality to Trac.

The usage of this macro can be displayed with: [[MacroList(PollMacro)]].

As an example, the following can be added to a Trac wiki page:

[[Poll(What do you think of the Poll macro?; Cool; Crap)]]

and gives:

What do you think of the Poll macro?
  • Cool (athomas, sineer, kparlar, Blackhex, gerryg, mocksoul, alf_igel, matias, aamk, mape, phpxcache, ChrisGreacen, jatyap, earobinson, dietmarw, alerocha, FilipeCorreia, sgissinger, rjollos, koolhand, ziegenberg, dreamkxd, farialima, lucasrangit, Akinfold, hieroglyph, victorrbravo, rpshaw, syphico)
  • Crap (mou, sir_ken)

  • You don't have permission to vote. You may need to login.

The poll data is stored in /tmp by default, but this can be overridden with the base_dir option in the [poll] section of TracIni. Relative paths are resolved relative to the environment conf directory.

[poll]
base_dir = /opt/trac/polltest/db/

Each voters name is displayed to the right of their choice.

The following permissions are added with this plugin:

  • The POLL_VOTE permission allows users to vote.
  • The POLL_VIEW permissions allows users to view the poll's result.

See also: EasyPollMacro

Bugs/Feature Requests

Existing bugs and feature requests for PollMacro are here.

If you have any issues, create a new ticket.

defect

20 / 23

enhancement

2 / 8

task

2 / 2

Download

Download the zipped source from here.

Source

You can check out the source for PollMacro from Subversion or browse the source with Trac.

Installation

General instructions on installing Trac plugins can be found on the TracPlugins page.

Recent Changes

16771 by rjollos on 2017-08-26 03:24:53
TracPoll 0.4.0dev: Add license info
16462 by rjollos on 2017-04-04 07:23:32
0.4.0dev: Use 32-bit hashes for compatibility
16397 by rjollos on 2017-03-25 09:37:00
Remove obsolete "0.9" code
(more)

Author/Contributors

Author: athomas
Maintainer: Ryan J Ollos
Contributors:

Last modified 9 months ago Last modified on Mar 28, 2017, 8:23:36 PM