Jeffrey P Shell wrote:

> 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.


Yes, that worked.  I still need to run some tests to make sure that 
objects cannot be overwritten or edited, but I've got three methods 
which work throughout my Zope instance: /isWriteLocked, /writeLock, and 
/writeUnlock, which work consistently with each other and should be 
enough for our purposes.

Thanks for the help!


--Dethe



-- 

Dethe Elza ([EMAIL PROTECTED])
Chief Mad Scientist
Burning Tiger Technologies (http://burningtiger.com)
Living Code Weblog (http://livingcode.ca)


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

Reply via email to