[dev] [ResourceLocking] looking for patch

Martin Lohmeier martin at mein-horde.de
Tue Jun 21 13:27:14 PDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I think I found a good way how this can beed done. I'm not going to lock
something, but make it as 'someone is editing this'. This way it it
possible that two people edit something simultaneous.
The mark and the original content of the resource is stored in datatree.
Before it is saved, the original data from datatree are compared with
the target source. When the two differs it created a patch from the
original data in datatree and the data which the user submitted (using
Text_Diff) and try to patch the target source.

The problem I have, is that I have no php code that can apply a patch.
Anyone know if there is code that does this?

by, Martin

- --

Powered by Debian GNU / Linux
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCuHgiOvJj+wS6JuIRArAyAKCE9tF8hqT+0IJTArQC03DKFEEALQCffTxh
QZi+HnQXiCyN/gYDBXHwgDc=
=j3cs
-----END PGP SIGNATURE-----


More information about the dev mailing list