[Zope] Lets try this again - auto-creation

michel@digicool.com michel@digicool.com
18 Jul 1999 15:13:29 -0400


Alexander Staubo <alex@mop.no> writes:

> You can store a "last ID" counter as an int property on the top-level
> folder, and increment that for every object you create.
> 
> Under Zope2 the counter must be thread-safe, which means you've got to
> borrow of Zope's global -- I think -- thread locks.
> 

If the object is persistent, like a property, it is automaticly thread 
safe.  The object database does not allow two threads to update an
object simultaneously.

-Michel