Re: [Zope-dev] Unique and Contant object IDs

2000-10-25 Thread Itamar Shtull-Trauring
Johan Carlsson wrote: > > > Why are the _p_oid depriciated? > > > > Not depreciated, just "don't use them." > > But I want too, why shouldn't I? > They solves my problems with mapping relational data to objects. I would guess multiple databases can have the same oid's for their objects - and Zo

Re: [Zope-dev] Unique and Contant object IDs

2000-10-25 Thread Ty Sarna
In article <9FC702711D39D3118D4900902778ADC8128675@JUPITER>, Toby Dickenson <[EMAIL PROTECTED]> wrote: > > Yeah, I'd love an ID I could use to grab an object no matter how often > > it was used. > > I suspect you will have to build this yourself. Store a sufficiently random > id inside your obje

Re: [Zope-dev] Unique and Contant object IDs

2000-10-25 Thread Ty Sarna
In article <[EMAIL PROTECTED]>, Toby Dickenson <[EMAIL PROTECTED]> wrote: > >Unfortunately there are a lot of things that Zope just can't do because > >there is no way to get a persistent "ticket" for an object that can be > >handed out to some external system, and then later redeemed for the > >

Re: [Zope-dev] Unique and Contant object IDs

2000-10-25 Thread Johan Carlsson
> Johan Carlsson wrote: > > > Why are the _p_oid depriciated? > > Not depreciated, just "don't use them." But I want too, why shouldn't I? They solves my problems with mapping relational data to objects. If I were to use my own random id generator I would need a global registry for my UID.

Re: [Zope-dev] Unique and Contant object IDs

2000-10-25 Thread Itamar Shtull-Trauring
Johan Carlsson wrote: > Why are the _p_oid depriciated? Not depreciated, just "don't use them." -- Itamar S.T. [EMAIL PROTECTED] Fingerprint = D365 7BE8 B81E 2B18 6534 025E D0E7 92DB E441 411C ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lis

Re: [Zope-dev] Unique and Contant object IDs

2000-10-25 Thread Johan Carlsson
> Chris Withers wrote: > > > > I suspect you will have to build this yourself. Store a sufficiently random > > > id inside your objects when they are created, and use a ZCatalog to index > > > them. How about a ZCatalog that stores its schemas in a RDB? > This is the normal way to keep referenc

Re: [Zope-dev] Unique and Contant object IDs

2000-10-25 Thread Itamar Shtull-Trauring
Chris Withers wrote: > > I suspect you will have to build this yourself. Store a sufficiently random > > id inside your objects when they are created, and use a ZCatalog to index > > them. > > blech! ;-) This is the normal way to keep references to objects. I asked Jim Fulton at IPC8, and he b

Re: [Zope-dev] Unique and Contant object IDs

2000-10-25 Thread Chris Withers
Toby Dickenson wrote: > > > Yeah, I'd love an ID I could use to grab an object no matter how often > > it was used. > > I suspect you will have to build this yourself. Store a sufficiently random > id inside your objects when they are created, and use a ZCatalog to index > them. blech! ;-) > >

RE: [Zope-dev] Unique and Contant object IDs

2000-10-25 Thread Toby Dickenson
> Yeah, I'd love an ID I could use to grab an object no matter how often > it was used. I suspect you will have to build this yourself. Store a sufficiently random id inside your objects when they are created, and use a ZCatalog to index them. > Why wouldn't the following work though: > > ...in

Re: [Zope-dev] Unique and Contant object IDs

2000-10-25 Thread Chris Withers
Toby Dickenson wrote: > > On 24 Oct 2000 15:14:24 GMT, [EMAIL PROTECTED] (Ty Sarna) wrote: > > >Unfortunately there are a lot of things that Zope just can't do because > >there is no way to get a persistent "ticket" for an object that can be > >handed out to some external system, and then later

Re: [Zope-dev] Unique and Contant object IDs

2000-10-24 Thread Toby Dickenson
On 24 Oct 2000 15:14:24 GMT, [EMAIL PROTECTED] (Ty Sarna) wrote: >Unfortunately there are a lot of things that Zope just can't do because >there is no way to get a persistent "ticket" for an object that can be >handed out to some external system, and then later redeemed for the >(properly wrapped

Re: [Zope-dev] Unique and Contant object IDs

2000-10-24 Thread Steve Waterbury
Ty Sarna wrote: > Unfortunately there are a lot of things that Zope just can't do because > there is no way to get a persistent "ticket" for an object that can be > handed out to some external system, and then later redeemed for the > (properly wrapped) object. Pathnames are not useful, because t

Re: [Zope-dev] Unique and Contant object IDs

2000-10-24 Thread Johan Carlsson
> > > > Is there an unique object ID in the ZODB that remains constant in all times > > through out the life time of the ZODB? > > And if so, where is it created and how do I access it? In other word how do I use >it? > > > > I can vaguely recall seeing something called OID. > > You can (from

Re: [Zope-dev] Unique and Contant object IDs

2000-10-24 Thread Ty Sarna
In article <000701c03d28$63f28c00$[EMAIL PROTECTED]>, Johan Carlsson <[EMAIL PROTECTED]> wrote: > Hi Zen-guys, > > Is there an unique object ID in the ZODB that remains constant in all times > through out the life time of the ZODB? > And if so, where is it created and how do I access it? In other

[Zope-dev] Unique and Contant object IDs

2000-10-23 Thread Johan Carlsson
Hi Zen-guys, Is there an unique object ID in the ZODB that remains constant in all times through out the life time of the ZODB? And if so, where is it created and how do I access it? In other word how do I use it? I can vaguely recall seeing something called OID. I need it to track discussions