Trac Hacks - Plugins Macros etc.: Ticket #6607: Allow wiki pages to be set read-only using a button on the wiki pagehttp://trac-hacks.org/ticket/6607
<p>
I'd like to allow users to set wiki pages to read-only, using a button next to the <strong>Edit File</strong> / <strong>Attach File</strong> buttons.
</p>
<p>
<a style="padding:0; border:none" href="http://trac-hacks.org/attachment/ticket/6607/EditFileAttachFileButtons.png"><img src="http://trac-hacks.org/raw-attachment/ticket/6607/EditFileAttachFileButtons.png" /></a>
</p>
<p>
The plugin would allow:
</p>
<ul><li>Specifying the prefix for pages that have this feature enabled. For example, you may only want to set enable the feature for pages beginning with <em>SoftwareRequirements/</em> or <em>MeetingMinutes/</em>.
</li><li>After the page is set read-only, only someone with <tt>TRAC_ADMIN</tt> permission can unset it read-only.
</li><li>There should be an easy way for someone with <tt>TRAC_ADMIN</tt> permission to remove the read-only attribute.
</li><li>There should be a <a class="wiki" href="http://trac-hacks.org/wiki/WebAdmin">WebAdmin</a> panel or macro that lists the pages that have been set to read-only, by whom, and a timestamp for the event.
</li><li>The should be a unique permission that user must have to set a wiki page read-only. I haven't yet come up with a good name for such a permission.
</li><li>Configuration directive that optionally allows only the page author to set the page to read-only.
</li><li>The timestamp and username of the person that last set the page read-only should be listed at the bottom of the page. We may get this for free in Trac <tt>0.12</tt> since it lists <em>last changed</em> information at the bottom of the page.
</li><li>Ideally a comment could be saved at the time the page is set to read-only (i.e. it creates a new revision of the page).
</li><li>Ideally a complete history is saved, so that if the page is set/unset read-only multiple times, all of that information is stored in the database (perhaps in the revision history of the page).
</li></ul><p>
The utility of this feature for me personally is that at my company many documents, such as meeting minutes that relate to product requirements, must be printed off, signed and added to the managed documents file (in order to meet FDA requirements for documentation history on a medical device). I'd like to allow the wiki pages to be set read-only at the time.
</p>
<p>
Ideally, the plugin could be extended to tickets, milestones, etc ... through a <em>trac.ini</em> configuration directive, but I don't currently have a requirement for this functionality beyond wiki pages.
</p>
en-usTrac Hacks - Plugins Macros etc.http://trac-hacks.org/chrome/site/trachacks_banner.pnghttp://trac-hacks.org/ticket/6607
Trac 1.0.4rjollosWed, 10 Feb 2010 05:59:26 GMTattachment sethttp://trac-hacks.org/ticket/6607
http://trac-hacks.org/ticket/6607
<ul>
<li><strong>attachment</strong>
set to <em>EditFileAttachFileButtons.png</em>
</li>
</ul>
TicketrjollosWed, 10 Feb 2010 06:00:05 GMThttp://trac-hacks.org/ticket/6607#comment:1
http://trac-hacks.org/ticket/6607#comment:1
<p>
Accidentally uploaded an image from a ticket page, but the basic idea is the same.
</p>
Ticket