People ask for UIDs pretty often. It's a bit tricky to do right. It must be high bandwidth, guaranteed correct, resistant to DOS attacks, and unlikely to make the ZODB grow wildly. It would be good to have a solid Zope-Seal-of-Approval solution in the box. I had a need for this but didn't need anything quite so robust. This simple/stupid solution rolls over in about 12 years and can generate 10 unique ids per second (I think. I should have written it down). In my case the application is behind a firewall with select client access so a more serious solution is not necessary. # I used to generate this ID in an separate python object but I # couldn't make the security work. Very strange. new_id = 'z%08x' % ((DateTime.DateTime().timeTime()-1040000000.0)*10.0) -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Daniƫl Hooymans Sent: Thursday, December 19, 2002 7:45 AM To: zope@zope.org Subject: [Zope] idea for unique object id's Hi all, Is it an idea to make a Folderish class which will generate a unique id when an object is added to it. Perhaps anyone has already done something like this? Greetz, Daniel