On 2/28/2011 11:21 AM, Remy Blank wrote:
Christian Boos wrote:
No idea, but sounds useful and should be *very* easy to do (hint:
request post-processor and add_info).
Anyone's up for the challenge of the smallest (useful) Trac plugin ever? ;-)
9 lines to beat, the path to the motd file should be configurable,
TracDev/CodingStyle not mandatory ;-)
Actually, a "maintenance" mode could be very useful, too, where all
users except TRAC_ADMIN get a page saying "This site is under
maintenance and should be back up shortly" (a configurable message). I
know other CMS have this kind of feature (e.g. Drupal).
Well, if the maintenance actually means a Trac upgrade, Trac itself
can't serve this message.
But the wrapper script (e.g. trac.wsgi) could take care of this, and it
could even show the message if it traps the ZipImportError that one
would likely get when doing an upgrade while the server is still running
(http://trac.edgewall.org/wiki/TracUpgrade#ZipImportError).
But you probably had something different in mind as you implied that
TRAC_ADMIN could still operate the site? What kind of maintenance, then?
-- Christian
--
You received this message because you are subscribed to the Google Groups "Trac
Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/trac-dev?hl=en.