plone/plone.uuid — pull request #2 by seanupton (2012-10-04 23:51:26+00:00)
Title: Revert to fielded RFC 4122 string format for uuid (with dashes) and add IUUIDObject interface and adapters

This pull request has commits to:

(1) Add new IUUIDObject convenience interface (marker) and adapters for uuid.UUID objects. The adapters provided easy ways to get actual UUID objects from string or content contexts, should that prove useful to add-on developers using UUIDs this way (useful for interoperability); adapter is also provided to IUUID from a uuid.UUID context.

(2) Revert changes to generator from d0141d6626f781dbba9f87f6cc9aaf4368869d73 -- using hexidecimal format is less than ideal for interoperability. Changing back to the canonical fielded format prescribed by the grammar in RFC 4122 will not break backward compatibility with existing objects for content relationships in Plone/Dexterity, but will aide in interoperability in heterogeneous framework or storage contexts (best-of-breed applications, content deployment applications, storing content and data linked by UUID in ORM-based RDBMS and on content).

Tests and changelog entries included for both changes.