plone/plone.api — Issue #12: Get UID
Author: zupo
Created: 2012-02-27 14:18:37+00:00
State: open

Getting a UID of a content object goes something like this:

from plone.uuid.interfaces import IUUID
uuid = IUUID(context)

This could be simplified. Something like:

from plone import api
api.content.get_uid(obj=site['some-id'])

Comments?