8-byte oids

View: New views
4 Messages — Rating Filter:   Alert me  

8-byte oids

by Jim Fulton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

IPersistent specifies OIDs to be non-empty strings and reserves the
8-byte OID consisting of 8 null characters.  Lots of ZODB
infrastructure assumes that oids are 8 bytes.  I'm tempted to say that
oids must be 8-byte strings. Does anyone see a problem with this?

Jim

--
Jim Fulton
_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@...
http://mail.zope.org/mailman/listinfo/zodb-dev

Re: 8-byte oids

by Shane Hathaway :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Jim Fulton wrote:
> IPersistent specifies OIDs to be non-empty strings and reserves the
> 8-byte OID consisting of 8 null characters.  Lots of ZODB
> infrastructure assumes that oids are 8 bytes.  I'm tempted to say that
> oids must be 8-byte strings.

+1.  The simplified standard promotes interoperability.

> Does anyone see a problem with this?

I don't anymore.

Shane
_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@...
http://mail.zope.org/mailman/listinfo/zodb-dev

Re: 8-byte oids

by Christian Theune-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08/13/2009 10:42 PM, Shane Hathaway wrote:
> Jim Fulton wrote:
>> IPersistent specifies OIDs to be non-empty strings and reserves the
>> 8-byte OID consisting of 8 null characters.  Lots of ZODB
>> infrastructure assumes that oids are 8 bytes.  I'm tempted to say that
>> oids must be 8-byte strings.
>
> +1.  The simplified standard promotes interoperability.

The difference to the spec before would be that previously strings with
less than 8 bytes were allowed?


- --
Christian Theune · ct@...
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1
Zope and Plone consulting and development
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqFBfAACgkQdUt9X/gknwLO9QCeNuLCMk1qElAGJLFGMyagoFZT
djMAn3OAPe3BD++9UqzdPMTLwaky0idH
=mYEo
-----END PGP SIGNATURE-----
_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@...
http://mail.zope.org/mailman/listinfo/zodb-dev

Re: 8-byte oids

by Christian Theune-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08/14/2009 08:36 AM, Christian Theune wrote:

> On 08/13/2009 10:42 PM, Shane Hathaway wrote:
>> Jim Fulton wrote:
>>> IPersistent specifies OIDs to be non-empty strings and reserves the
>>> 8-byte OID consisting of 8 null characters.  Lots of ZODB
>>> infrastructure assumes that oids are 8 bytes.  I'm tempted to say that
>>> oids must be 8-byte strings.
>
>> +1.  The simplified standard promotes interoperability.
>
> The difference to the spec before would be that previously strings with
> less than 8 bytes were allowed?

Never mind, reading one of your mails in the other thread actually
cleared this up.

- --
Christian Theune · ct@...
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1
Zope and Plone consulting and development
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqFBkgACgkQdUt9X/gknwLJVACgiF5Mk4o++FpLBXft4VGQUYpF
oMUAoLoGs1BnnkU6m7ZVhg8xQAmF9Mys
=yzsl
-----END PGP SIGNATURE-----
_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@...
http://mail.zope.org/mailman/listinfo/zodb-dev