[Zope] Best policy to assign policy to assign ids to objects insideBTreeFolder2

Kees de Brabander cj.de.brabander at hccnet.nl
Mon Jul 7 15:16:30 EDT 2008


You could use the uuid package (http://pypi.python.org/pypi/uuid/1.30)
cb
-----Oorspronkelijk bericht-----
Van: zope-bounces at zope.org [mailto:zope-bounces at zope.org] Namens Marco
Bizzarri
Verzonden: maandag 7 juli 2008 14:53
Aan: Zope Users Mailing List
Onderwerp: [Zope] Best policy to assign policy to assign ids to objects
insideBTreeFolder2

Hi all.

I need to create a number of objects inside a BTreeFolder2 container.

I would like to minimize the chances of conflicts, so I'm exploring
possibilities to assign ids; up to now I've found the following:

- timestamps
- random numbers

What is the best choice to reduce the chances of conflicts?

Regards
Marco

--
Marco Bizzarri
http://iliveinpisa.blogspot.com/
_______________________________________________
Zope maillist  -  Zope at zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.138 / Virus Database: 270.4.5/1537 - Release Date: 6-7-2008
5:26



More information about the Zope mailing list