Re: [ZODB-Dev] Locking

2008-07-04 Thread Izak Burger
Joseph Turian wrote: See if key is present in root. [it's not] Lock key write-access, so that no other client will try to write key. Compute value for key. Write value for key. Unlock key. Just as an aside, theoretically speaking, checking for the existence of the key should be included in the

Re: [ZODB-Dev] Locking

2008-07-03 Thread Marius Gedminas
On Wed, Jul 02, 2008 at 04:45:53PM -0400, Joseph Turian wrote: > How do I "lock" zodb objects? > > I want the following process: > > See if key is present in root. > [it's not] > Lock key write-access, so that no other client will try to write key. > Compute value for key. > Write value for key.

Re: [ZODB-Dev] Locking

2008-07-02 Thread Andreas Jung
--On 2. Juli 2008 16:45:53 -0400 Joseph Turian <[EMAIL PROTECTED]> wrote: How do I "lock" zodb objects? Zope provides locking for WebDAV under the hood. Means you can not lock/unlock objects directly through the Zope UI (except the global webdav lock manager in the ZMI for _unlocking_ cont