Version 9 (modified by anonymous, 2 years ago) (diff)

Added recent changes.

TracHacks custom modifications


This plugin implements some of the customisations used in TracHacks.

Primarily the ListTypes macro used on the main page, and hooks to create user pages and tags.

The user creation extensions rely on the AccountManagerPlugin, and sub-classes the HtPasswdStore implementation to provide it with additional features for TracHacks.

Bugs/Feature Requests

Existing bugs and feature requests for TracHacksPlugin are here.

If you have any issues, create a new ticket.


Download the zipped source from here.


You can check out the source for TracHacksPlugin from Subversion here, or browse the source with Trac.


See WikiStart for the ListTypes macro.

Recent Changes

[13877] by rjollos on 2014-04-28 02:48:00
3.0dev: PEP-0008 changes. Refs #11698.
[13876] by rjollos on 2014-04-28 02:32:00
Fixed an AttributeError exception in TracHacksHtPasswdStore.save_changes (IAccountChangeListener implementation) due to missing authname attribute of FakeRequest class. Refs #11698.

TagsPlugin 0.7 requires an authname attribute on the Request object in order to record the tags change history. Bumped TracTags requirement from 0.7dev to 0.7.

Patch by Steffen Hoffmann.

[13875] by rjollos on 2014-04-28 02:30:29

3.0dev: Refactored user_created method in IAccountChangeListener implementation:

  • TagsSystem.add_tags uses the Resource object attribute of the WikiPage object rather than a new Resource object created in the caller. TagsSystem.add_tags continues to be called before to prevent a Tags added entry in the page history. Presumably this is the behavior we want, but it could be discussed further.
  • Extracted the user page template to a module-scope attribute USER_PAGE_TEMPLATE.
  • In page comment: wrapped user with italics markup.


Author: athomas
Maintainer: otaku42