[Moin-devel] Edit lock patch
Nick Trout
ntrout at rockstarvancouver.com
Fri Jan 31 19:12:02 EST 2003
Hi, this is the edit locking patch I have been working on. It is a patch of
the CVS version from a couple of days ago. (I just did cvs ... diff > file,
is this usual way of submitting patches?) I have tested it a little but I
don't have time to test any further.
Features:
* Choose your edit locking type in the config: (default is 'warn 10')
config.edit_locking = None | 'lock [<timeout>]' | 'warn [<timeout>]'
* None: Edit locking is switched off, Moin is the same as before.
* Warn <timeout> : If you start editing a page and someone tries to edit it
within the timeout period, they will receive a big red message saying:
"<b><p>Another user, %s, started editing this page at %s (%d minutes
ago).</p>
<p>Please consider returning to this page at a later time to make your
changes and avoid any editing conflicts. Hit the cancel button to exit this
page.</p>"
They are free to continue editing if they like and if they save you will
still lose your changes, as before.
* Lock <timeout>: The page is locked for <timeout> minutes after you start
editing. Noone else can edit the page whilst you are editing it (and the
timeout hasn't run out).
* The timeout is reset when you press preview.
* In the case of both Warn and Lock, if you cancel editing, or save the
page, then the lock is removed. If you wander off a page and do nothing then
other users will have to wait for the timeout for whatever message to
disappear. You might reduce the timeout to deal with this.
Please post any bugs to the list and I'll try and fix any problems next week
if I get some time.
Regards,
Nick
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: d1.txt
URL: <http://mail.python.org/pipermail/moin-devel/attachments/20030131/c2176f58/attachment.txt>
More information about the Moin-devel
mailing list