Add a pastebin component to Trac

Description

Adds a basic pastebin functionality to a webpage. It requires trac0.11 and pygments > 0.5.

For some screenshots have a look at the attachments. But note that they are taken on my test trac installation with a heavily modified theme.

Bugs/Feature Requests

Existing bugs and feature requests for TracPastePlugin are here.

If you have any issues, create a new ticket.

Download and Source

Download the zipped source from here, check out using Subversion, or browse the source with Trac.

Installing

  1. Make sure the Pygments Python extension is installed
  2. Either: Download, build egg, drop into your plugins folder,
    or: easy_install http://trac-hacks.org/svn/tracpasteplugin/0.11
  3. Enable it over webadmin or by editing trac.ini: [components] tracpaste.* = enabled
  4. Run trac-admin /path/to/project upgrade
  5. Restart web server
  6. Add permission PASTEBIN_USE to users/groups that should be able to access it
  7. It should now be visible in menu and available under /pastebin.

Recent Changes

[7022] by lkraav on 11/02/09 23:31:40

fixes #6136

[5001] by otaku42 on 12/12/08 06:27:57

TracPastePlugin: PostgreSQL doesn't like some of the SQL statements introduced in r4983, as reported by mixedpuppy (thanks!). Fixed. Closes #4262.

Looks like I should start testing things with PostgreSQL, too... doh!

[4995] by otaku42 on 12/11/08 10:40:58

TracPastePlugin: Improve e-mail address obfuscation. As suggested by osimons it's better to defer obfuscation until rendering, so that the original value is available for post-processing and stuff.

Plus obfuscation is now also done for the "recent pastes" list.

[4994] by otaku42 on 12/11/08 10:21:16

TracPastePlugin: Use Tracs feature to obfuscate e-mail addresses when viewing pastes, as suggested by osimons (thanks!). Closes #4253.

Author/Contributors

Author: mitsuhiko
Maintainer: otaku42
Contributors:

Attachments