[Zope-dev] Unique ID generation with ZODB.

Syver Enstad syver at inout.no
Tue Apr 6 04:46:21 EDT 2004


Andreas Jung <andreas at andreas-jung.com> writes:

> The simplest solution is to keep the counter as file in the
> filesystem. Access to the file
> must be synchronized through a lock object (-> Python docs). Just a
> few lines of Python
> code.

It has to work in windows too, so it's a bit more involved but should
be manageable with win32all. I don't particularely like that I have
another piece of data to backup though.





More information about the Zope-Dev mailing list