[Zope-dev] Globally Unique Object Ids

Jim Fulton jim@digicool.com
Mon, 19 Jul 1999 16:17:00 -0400


Jason Spisak wrote:
> 
> Zopsters,
> 
> Is there a way to genereate globally unique object ids for use with a
> Zope app. 

Yes. Uh sort of. What do you want to use this for?

> I notices the ZClasses has this sort of thing. 

Right.

> I used to use
> a counter property of the root folder and call an update with creation
> of an object like so, <!--#call
> "PARENTS[-2].manage_changeProperties(counter=counter+1)"-->, but now
> with concurrency that's not *really* safe,

Why not?


Jim

--
Jim Fulton           mailto:jim@digicool.com   Python Powered!        
Technical Director   (888) 344-4332            http://www.python.org  
Digital Creations    http://www.digicool.com   http://www.zope.org    

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.