wiki:PollMacro

Version 25 (modified by rjollos, 4 years ago) (diff)

Removed old TagIt macro.

Create polls based on tickets, or static arguments

Description

The PollMacro plugin adds polling to Trac.

Usage:

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.

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

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

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

Bugs/Feature Requests

Existing bugs and feature requests for PollMacro are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from [download:pollmacro here].

Source

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

Example

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

gives:

What do you think of the Poll macro?
  • Cool
  • Crap

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

Change Log

14825 by rjollos on 2015-07-20 06:47:43
0.3.0dev: Require Trac >= 0.11.
14542 by rjollos on 2015-04-20 16:00:37
0.3.0dev: tag_svn_revision is not supported in setuptools ≥ 10.
11670 by rjollos on 2012-06-20 08:03:59
Refs #7275: Display a message to users when they don't have permission to vote.
(more)

Author/Contributors

Author: athomas
Maintainer: rjollos
Contributors: