[Zope] Which method to generate IDs for objects?
   
    Maik Jablonski
     
    maik.jablonski@uni-bielefeld.de
       
    Thu, 17 Jan 2002 15:10:15 +0100
    
    
  
hello juergen,
i think this will give you really unique id's...  part of a python script
# get a unique id in context for an object
id = len(context.objectIds())    # get the number of objects in context 
=> maybe already a free id?
while hasattr(context,str(id)):  # to be sure: test if id exists already 
and search for a free id...
     id = id + 1
return(str(id))                     # and that's what we need...
hope this will get you through...
mjablonski