[Zope] Unique ids for each object [Correction]
Andy McKay
andym@ActiveState.com
Mon, 14 May 2001 12:32:35 -0700
Yeah, sorry, I wasnt very clear there. _p_oid is a unique id, but if I
change it, I will start wimpering when everything goes wrong.
Thinking about it more, its not a unique id at all, more a revision number
that normally does x, but occasionally does something different. And of
course has to apply to all objects in the zodb. The more I think about it,
if there is a hook is available each time an object is written in the zodb I
could use that. Reading docs now :)
Cheers.
--
Andy McKay.
----- Original Message -----
From: "Chris McDonough" <chrism@digicool.com>
To: "Andy McKay" <andym@activestate.com>; <zope@zope.org>
Sent: Monday, May 14, 2001 12:04 PM
Subject: Re: [Zope] Unique ids for each object
> _p_oid on every object is unique currently.
>
> ----- Original Message -----
> From: "Andy McKay" <andym@ActiveState.com>
> To: <zope@zope.org>
> Sent: Monday, May 14, 2001 2:59 PM
> Subject: [Zope] Unique ids for each object
>
>
> > Alright so for my latest project Im thinking I need to implement a
unique
> > number on each Zope object that obeys certain rules. For example
> increments
> > on an edit, doesnt on an import etc.
> >
> > Anyone tried that or can give me a clue where to stick it in? Somewhere
in
> > or just above the ZODB would be ideal...
> >
> > Cheers.
> > --
> > Andy McKay.
> >
> >
> >
> >
> > _______________________________________________
> > Zope maillist - Zope@zope.org
> > http://lists.zope.org/mailman/listinfo/zope
> > ** No cross posts or HTML encoding! **
> > (Related lists -
> > http://lists.zope.org/mailman/listinfo/zope-announce
> > http://lists.zope.org/mailman/listinfo/zope-dev )
> >
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>