[Zope-dev] Globally unique id's in Zope in a new way

Andrew Edmondson a.edmondson@eris.dera.gov.uk
Thu, 9 Mar 2000 18:00:14 +0000


I've been bulk adding objects today, and have come up with this method:

If you use:

<dtml-call "REQUEST.set('id',_.str(_.int(1000000*_.DateTime().second())))">

Then you will have an id unique to 1 millionth of a second.

If this is still not good enough then you can do 10,000,000, etc.

-Ed