![]() | HelpOnEditLocks |
UserPreferences |
Technorati Developers Site | FrontPage | RecentChanges | TitleIndex | WordIndex | SiteNavigation | HelpContents | moin.sf.net |
If two people try and edit the same wiki page at once some nasty conflicts can occur. Without any kind of warning system one of the editors can save the page, which leaves the other editor with a message warning them about the conflict. An easy way around this is to display warnings for editors that try to start editing wiki pages that are already being edited. i.e. the wiki keeps track of pages being edited.
This can be done in Moin using the editlock system. There are three levels of locking: to warn, to lock and None (turned off).
If you configure Moin to warn, when someone tries to edit a page that is already being edited, they will be presented with a warning message asking them to consider waiting until the current editor has finished.
Moin can also be configured to lock an edited page, only during editing. Here, if some tries to edit a page that is being edited they will receive a message saying that the page is locked and will not be able to edit it until the editor has finished.
A complication of this feature is that an editing session might be started and might not be finished. e.g.:
This would result in a page having permanent warnings or being permanently locked. Therefore, both warn and lock have a timeout feature. After a specified number of minutes the feature expires. Note that the timer restarts when you hit preview. If you are actively editing a page and hit preview it is assumed you are still busy and the timer starts again. If you leave the page, or exit it for more time than the timer allows the edit locking runs out and other people are free to edit the page.
The edit_locking config variable controls the behaviour of the locking system. This can have the following values:
For the reasons explained in the timeout description above, you should always use Cancel to cancel an edit if you have enabled edit locking!
Sample interaction of JohnMiller and JaneDoe...
EditText of this page [current page size 3803 bytes] (last modified 2003-03-25 22:53:13) FindPage by browsing, title search , text search or an index Or try one of these actions: LikePages, LocalSiteMap, SpellCheck |