On Thursday, November 1, 2001, at 06:53  PM, Dethe Elza wrote:

> Andreas Jung wrote:
>> See Lockable.py and LockItem.py.
> OK, I was confused and thought an object could serve as it's own 
> lock (Java does something like this).  So I need to create a 
> LockItem.  Is this class accessible from  a DTML Method or should 
> I be looking at an External Method?

An external method.

LockItems basically model all of the data required by WebDAV to 
represent what is expected in a WebDAV "lockdiscovery" property.  
An object cannot serve as its own lock as there is not a larger 
locking mechanism in play here - only the WebDAV system.  Thus, 
LockItems are very WebDAV specific - 'exclusive write lock' 
specific in fact.

See also "webdav/davcmds.py", classes Lock and Unlock to see how 
the locks are created and applied.

You might also want to check out the "seatbelt" mechanism in the 
CMF's Document class as an alternate approach.

Jeffrey P Shell, [EMAIL PROTECTED]

Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to