Commits

Author Commit Message Labels Comments Date
rjollos
Trimmed whitespace using `reindent.py`.
hasienda
VotePlugin: Make `compact` and `top` standard wiki macro arguments, refs #4546 and #7592. List output for all three macros is limited to a maximum of 5 items, if not explicitely specified by `top=<n>`, where in turn 'n=0' means ''unlimited''. The previous limit of 10 items (`TopVoted` only) looked like too much. And rendering of resource links respects the `compact` argument too, what yields significantly reduced output for milestones and tickets.
hasienda
VotePlugin: Re-enable voting on milestones, refs #4546, #7592 and #10942. `delete_vote` obviously needed to not depend on a `req` object to work. That went unnoticed, because it is called only by change listeners for now. `set_vote` was not ready for unversioned resources, and a subtle insanity in `resource_from_path` surfaced during early testing with milestones too. Method name changes are done for clarity, that a single method call probably deals with multiple vote…
hasienda
VotePlugin: Pipe usernames through `Chrome.format_author` to obfuscate email addresses, if required, refs #4546 and #7592. Additionally I've spotted and fixed an `UnicodeDecodeError` due to a not unicode-aware string replacement in `[[LastVoted]]` wiki macro.
hasienda
VotePlugin: Finish version nummer corrections after [13087:13088], refs #10706.
hasienda
VotePlugin: Rename tagged release tracvote-0.1.4 --> tracvote-0.1.5 following recent research on this plugin's commit history.
hasienda
VotePlugin: Add [source:voteplugin/trunk/changelog changelog] file, correct maintainer email. `Changelog` provides a commit history wrap-up evidenced by current SVN log. This generally helps with tracking pending vs. resolved issues, and it serves as cheap off-line reference for upgraders too.
hasienda
VotePlugin: Insert and evaluate tokens to prevent CSFR attacks, refs #7744. Code has been re-used from Trac core, and I've been lucky to get pre-commit review of these changes by Ryan J Ollos, who provided the simpler `set_vote`.
hasienda
VotePlugin: Use time-stamped votes, refs #4546 and #7592. Don't delete votes anymore, what is sensible, because we may become interested in voting history later on. Two more wiki macros are available now, that already use these time stamps. While using current microseconds POSIX time stamps internally, care has been taken to preserve backwards-compatibility down to Trac 0.11 here.
hasienda
VotePlugin: Add code for WikiMacros, refs #4546 and #7592. This is WiP yet.
hasienda
VotePlugin: Auto-update wiki resource entries on wiki changes.
hasienda
VotePlugin: Always redirect to latest resource version. This replicates behavior of the plugin before changing internal resource representation.
hasienda
VotePlugin: Allow vote requests only from resource view pages, refs #7744. Because the vote request always redirects to the standard resource view, it will be undesired to vote from pages like i.e. wiki page editor.
hasienda
VotePlugin: Update sample SQL reports following changes in [13079], refs #3655.
hasienda
VotePlugin: Moving to new db schema, refs #4546 and #10942. Major changes are * conversion of internal resource pointers from path to resource identifiers * schema version entry in Trac db table `system` * two time stamp columns for both, initial vote and last change/update Introduce slightly reduced version of common schema upgrade code and unit tests covering possible install/upgrade scenarios. Time stamp columns are prerequisite for something like v…
rjollos
Fixes #11037, Refs #10226: VotePlugin: Perform Unix shell-style wildcard matching (globs), as is documented, for the `paths` option. Previously, a regular expression was used to match paths.
rjollos
Refs #10941: Replaced a single line containing tab-indentation with space-indentation.
rjollos
Refs #10941: Added license header to `setup.py`.
hasienda
VotePlugin: Add an unit test harness, refs #10941. Including more author comments and explicit license file for clarity.
hasienda
TracVote: Tag version after fixing `IEnvironmentSetupParticipant` method for compatibility with Trac-0.13dev/1.0, bumping `trunk` as well.
hasienda
TracVote: Don't call rollback() from environment_needs_upgrade(), closes #10706. This is patterned after [12124] for TagsPlugin. See #9521 for details on implications of probing the Trac db for table existence like done before.
hasienda
TracVote: Nit-picking about PEP8 and related code styling.
hasienda
TracVote: Allow for more intuitive permission setup by action inheritance, closes #10941.
hasienda
TracVote: Tag current version before going on with changes, pushing `trunk` as well.
rjollos
Refs #8597: Redirect to URL accounts for path to Trac environment.
rjollos
Renamed `0.11` directory to `trunk`. Deleted empty `0.12` directory.
rjollos
Move location of SQL for Report file. Add svn:ignore property for *.egg-info directory.
rjollos
Added SQL query for a report that sorts tickets by the number of votes. SQL is taken from the t.e.o. site. Fixes #3655.
rjollos
Added README instructing to use 0.11 version of plugin with 0.12.
rjollos
Changed process_request to convert unicode to utf-8 to account for change in Trac API in 0.12. Thanks to Peter Lawrence for providing a patch. Fixes #7556.
  1. Prev
  2. Next