[Zope3-Users] Re: RFC 4122 UUIDs

2007-04-08 Thread Martin Aspeli
Fred Drake wrote: On 4/6/07, Philipp von Weitershausen <[EMAIL PROTECTED]> wrote: How is there a ZCML pain? Simply register the adapter for all IAnnotatable objects. Typically your content objects are annotatable anyway because you want DublinCore stuff etc. This sounds like this will result i

[Zope3-Users] Re: RFC 4122 UUIDs

2007-04-06 Thread Jürgen Kartnaller
Stephan Richter wrote: On Thursday 05 April 2007 15:28, Jürgen Kartnaller wrote: Please do not use an annotation! This is a performance issue. Your data is very small so do not create a new object in the database store it directly as a property on the instance. Every object lookup is expensive,

Re: [Zope3-Users] Re: RFC 4122 UUIDs

2007-04-06 Thread Fred Drake
On 4/6/07, Philipp von Weitershausen <[EMAIL PROTECTED]> wrote: How is there a ZCML pain? Simply register the adapter for all IAnnotatable objects. Typically your content objects are annotatable anyway because you want DublinCore stuff etc. This sounds like this will result in huge numbers of U

[Zope3-Users] Re: RFC 4122 UUIDs

2007-04-06 Thread Philipp von Weitershausen
Derek Richardson wrote: Look at zope.intid; it should be IObjectCreatedEvent or IObjectAddedEvent. It's zope.app.intid, btw. I have started coding a uuid package for Zope. zope.intid uses IObjectAddedEvent; I plan to as well. Yes. However, the uuid differs from the intid in that I want to

[Zope3-Users] Re: RFC 4122 UUIDs

2007-04-06 Thread Philipp von Weitershausen
Stephan Richter wrote: On Wednesday 04 April 2007 13:06, Derek Richardson wrote: I am hoping that Zope 3 assigns an RFC 4122 UUID to each content item. If not, I am hoping there is a third-party product to do this. No there is neither. We have an intid utility that guarantees System-wide uniq

[Zope3-Users] Re: RFC 4122 UUIDs

2007-04-05 Thread Derek Richardson
Stephan Richter wrote: On Thursday 05 April 2007 15:28, Jürgen Kartnaller wrote: Please do not use an annotation! This is a performance issue. Your data is very small so do not create a new object in the database store it directly as a property on the instance. Every object lookup is expensive,

Re: [Zope3-Users] Re: RFC 4122 UUIDs

2007-04-05 Thread Stephan Richter
On Thursday 05 April 2007 15:28, Jürgen Kartnaller wrote: > Please do not use an annotation! > > This is a performance issue. Your data is very small so do not create a > new object in the database store it directly as a property on the > instance. Every object lookup is expensive, especially if yo

[Zope3-Users] Re: RFC 4122 UUIDs

2007-04-05 Thread Jürgen Kartnaller
Derek Richardson wrote: Martin Aspeli wrote: Derek Richardson-2 wrote: Martin Aspeli wrote: Stephan Richter-2 wrote: On Wednesday 04 April 2007 13:06, Derek Richardson wrote: I am hoping that Zope 3 assigns an RFC 4122 UUID to each content item. If not, I am hoping there is a third-par

[Zope3-Users] Re: RFC 4122 UUIDs

2007-04-05 Thread Derek Richardson
Martin Aspeli wrote: Derek Richardson-2 wrote: Martin Aspeli wrote: Stephan Richter-2 wrote: On Wednesday 04 April 2007 13:06, Derek Richardson wrote: I am hoping that Zope 3 assigns an RFC 4122 UUID to each content item. If not, I am hoping there is a third-party product to do this. No t

[Zope3-Users] Re: RFC 4122 UUIDs

2007-04-05 Thread Derek Richardson
Fred Drake wrote: On 4/5/07, David Pratt <[EMAIL PROTECTED]> wrote: The UUID generator that I have been looking at is with the Chandler project (currently under Apache license) that could be easily wrapped: Python 2.5 comes with a "uuid" module that works just fine with Python 2.4; that comes

Re: [Zope3-Users] Re: RFC 4122 UUIDs

2007-04-05 Thread Fred Drake
On 4/5/07, David Pratt <[EMAIL PROTECTED]> wrote: The UUID generator that I have been looking at is with the Chandler project (currently under Apache license) that could be easily wrapped: Python 2.5 comes with a "uuid" module that works just fine with Python 2.4; that comes in handy as well, a

Re: [Zope3-Users] Re: RFC 4122 UUIDs

2007-04-05 Thread David Pratt
I also like the idea of UUIDs the way they are meant to be - which should be independent of the instance. I can imagine a further possibility to synchronize objects from independent zodb sources if this existed. The UUID generator that I have been looking at is with the Chandler project (cur

Re: [Zope3-Users] Re: RFC 4122 UUIDs

2007-04-05 Thread Marius Gedminas
On Wed, Apr 04, 2007 at 03:12:26PM -0400, Stephan Richter wrote: > On Wednesday 04 April 2007 14:34, Derek Richardson wrote: > > I believe that that will not guarantee a *universally* unique id, but > > only an id unique within that ZODB. Am I wrong? > > Well, intid guarantees to be unique for thi

[Zope3-Users] Re: RFC 4122 UUIDs

2007-04-04 Thread Martin Aspeli
Stephan Richter wrote: On Wednesday 04 April 2007 14:34, Derek Richardson wrote: I believe that that will not guarantee a *universally* unique id, but only an id unique within that ZODB. Am I wrong? Well, intid guarantees to be unique for this Zope instance, even accross multiple databases co

Re: [Zope3-Users] Re: RFC 4122 UUIDs

2007-04-04 Thread Stephan Richter
On Wednesday 04 April 2007 14:34, Derek Richardson wrote: > I believe that that will not guarantee a *universally* unique id, but > only an id unique within that ZODB. Am I wrong? Well, intid guarantees to be unique for this Zope instance, even accross multiple databases conencted to this Zope in

Re: [Zope3-Users] Re: RFC 4122 UUIDs

2007-04-04 Thread Benji York
Derek Richardson wrote: I believe that that will not guarantee a *universally* unique id, but only an id unique within that ZODB. Am I wrong? The RFC prescribes a specific algorithm for generating universally unique IDs. Of course, they are only "universally unique" in a probabilistic way.

[Zope3-Users] Re: RFC 4122 UUIDs

2007-04-04 Thread Derek Richardson
I believe that that will not guarantee a *universally* unique id, but only an id unique within that ZODB. Am I wrong? The RFC prescribes a specific algorithm for generating universally unique IDs. Derek Benji York wrote: Derek Richardson wrote: I am hoping that Zope 3 assigns an RFC 4122 UU

[Zope3-Users] Re: RFC 4122 UUIDs

2007-04-04 Thread Paul Bugni
Derek Richardson and I were just discussing this matter on freenode #vice ... I have no idea at this point if the suggested event model is better, but it seems like an implementation that safely handles the missing annotation on request, would be simpler and more efficient. In other words, r

[Zope3-Users] Re: RFC 4122 UUIDs

2007-04-04 Thread Derek Richardson
Martin Aspeli wrote: Stephan Richter-2 wrote: On Wednesday 04 April 2007 13:06, Derek Richardson wrote: I am hoping that Zope 3 assigns an RFC 4122 UUID to each content item. If not, I am hoping there is a third-party product to do this. No there is neither. We have an intid utility that guar