[Erp5-dev] guard agains concurrent edits

Jean-Paul Smets jp at nexedi.com
Mon Jun 30 14:25:53 CEST 2008


Hi,

The clean way to handle this is to define in a workflow who is
responsible of editing objects at a given time.  This is the only way
which garantees everything.

It could be useful though to display warnings in certain cases (ie.
based on modification date as you suggested).

Regards,

JPS.

bartek a écrit :
> Hi,
>
> Would it be feasible to implement a kind of a "guard" against concurrent
> edits of the same object? I mean this: if I open a form to edit, and
> while I'm typing another guy opens the same form, edits and saves, then
> when I save the form the other guy's changes will be silently
> overwritten, and nobody would be notified. In a multi-user environment
> this can cause serious issues.
>
> I see two ways to solve it: first is MoinMoin-like, the other would be
> to store original data and load time in a form and upon submission
> checking if modification date has been changed, and if so then it would
> be possible to check if there are conflicts.
>
> What do you think?
>
> Bartek
>
>   


-- 
Jean-Paul Smets-Solanes, Nexedi CEO - Tel. +33(0)6 62 05 76 14
ERP5 Enterprise: Free / Open Source ERP for Critical Applications
http://www.erp5.com
ERP5 Express: Hosted Open Source ERP for small companies
http://www.myerp5.com
Nexedi: Consulting and Development of Free / Open Source Software 
http://www.nexedi.com




More information about the Erp5-dev mailing list