id	summary	reporter	owner	description	type	status	priority	component	severity	resolution	keywords	cc	release
4029	Patches to enhance TracPastePlugin	otaku42	otaku42	Attached is a series of patches that improve TracPastePlugin and/or implement new features.\r\n\r\n 01_recent_pastes_configurable.patch::\r\n   Default number of recent pastes that get displayed on the "main" pastebin page can be configured in trac.ini, section {{{[pastebin]}}}, option {{{default_recent}}} (default: 10).\r\n\r\n 02_recent_pastes_rss_feed.patch::\r\n   Allow to fetch list of recent pastes as RSS feed. This allows for example to let a Supybot announce new pastes in IRC channels. Similar to the timeline RSS feed, the number of items that get displayed in the feed can be adjusted using the {{{max}}} query parameter. The maximum amount of items that may be requested this way can be limited in trac.ini, section {{{[pastebin]}}}, option {{{max_recent}}} (default: 30).\r\n\r\n 03_other_formats_configurable.patch::\r\n   The ''Download in other formats'' functionality can be disabled in trac.ini, section {{{[pastebin]}}}, option {{{enable_other_formats}}} (default: enabled). For example, this might help a little to prevent search engine spiders from getting HTML-ized spam pastes and using them to boost page rank of spamvertized sites.\r\n\r\n 04_other_formats_filter.patch::\r\n   Allows finer-grained control over which pastes may be downloaded in other formats. Download is disabled if the MIME-type of a paste matches one of the filters defined in trac.ini, section {{{[pastebin]}}}, option {{{filter_other_formats}}}. ''*'' may be used as wildcard.\r\n\r\n 05_use_same_formatter_in_reply.patch::\r\n   When replying to a paste, the formatter that was used in the paste that is replied to will be pre-selected for the reply.\r\n\r\n 06_show_metadata.patch::\r\n   Show additional information (Content-Type and formatter/highlighter) when viewing a paste.\r\n\r\n 07_rename_permission.patch::\r\n   Rename permission PASTEBIN_USE to PASTEBIN_VIEW. Introduce new permission PASTEBIN_ADMIN.\r\n\r\n 08_finegrained_permission.patch::\r\n   Implement fine-grained permissions for creating new pastes (PASTEBIN_CREATE) and replying to existing ones (PASTEBIN_REPLY). PASTEBIN_CREATE and PASTEBIN_REPLY both include the PASTEBIN_VIEW permission.\r\n\r\n 09_delete_pastes.patch::\r\n   Introduce new permission PASTEBIN_DELETE; users with this permission are allowed to delete pastes.\r\n\r\n 10_turing_test.patch::\r\n   Implements a simple turing test that might help against spambots. A new field is added to the form that's used for creating pastes. Pastes will not be accepted if anything is filled into this field; the idea behind it is that many spambots will fill each field of a form, and thus can be identified this way. The field is hidden with CSS, and for cases where CSS is not supported a clear warning is displayed along with the field. This feature can be disabled in trac.ini, section {{{[pastebin]}}}, option {{{turing_test}}}. It's enabled by default.\r\n\r\nI have some more patches in my queue which I will add to this ticket over time. Comments and suggestions welcome.	enhancement	closed	normal	TracPastePlugin	normal	fixed		dclark@pobox.com, rjollos	0.11
