Re: [Zope] Lets try this again - auto-creation
18 Jul
1999
18 Jul
'99
7:13 p.m.
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
9759
Age (days ago)
9759
Last active (days ago)
0 comments
1 participants
participants (1)
-
michel@digicool.com