{"action":"created","issue":{"url":"https://api.github.com/repos/plone/plone.app.uuid/issues/5","repository_url":"https://api.github.com/repos/plone/plone.app.uuid","labels_url":"https://api.github.com/repos/plone/plone.app.uuid/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/plone/plone.app.uuid/issues/5/comments","events_url":"https://api.github.com/repos/plone/plone.app.uuid/issues/5/events","html_url":"https://github.com/plone/plone.app.uuid/issues/5","id":257364264,"number":5,"title":"Provide a ++uuid++ traverser","user":{"login":"petri","id":64672,"avatar_url":"https://avatars0.githubusercontent.com/u/64672?v=4","gravatar_id":"","url":"https://api.github.com/users/petri","html_url":"https://github.com/petri","followers_url":"https://api.github.com/users/petri/followers","following_url":"https://api.github.com/users/petri/following{/other_user}","gists_url":"https://api.github.com/users/petri/gists{/gist_id}","starred_url":"https://api.github.com/users/petri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petri/subscriptions","organizations_url":"https://api.github.com/users/petri/orgs","repos_url":"https://api.github.com/users/petri/repos","events_url":"https://api.github.com/users/petri/events{/privacy}","received_events_url":"https://api.github.com/users/petri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-13T12:36:26Z","updated_at":"2017-09-15T20:24:48Z","closed_at":null,"author_association":"MEMBER","body":"Useful for permalinks and URL shortcuts when there are long paths, etc. See discussion at https://community.plone.org/t/uuid-traverser-plone-app-uuid/4819\r\n\r\nI wrote a draft traverser; see the uuid_traverser branch of this repository. It works, but only with published content so far.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/plone/plone.app.uuid/issues/comments/329892588","html_url":"https://github.com/plone/plone.app.uuid/issues/5#issuecomment-329892588","issue_url":"https://api.github.com/repos/plone/plone.app.uuid/issues/5","id":329892588,"user":{"login":"jaroel","id":70700,"avatar_url":"https://avatars1.githubusercontent.com/u/70700?v=4","gravatar_id":"","url":"https://api.github.com/users/jaroel","html_url":"https://github.com/jaroel","followers_url":"https://api.github.com/users/jaroel/followers","following_url":"https://api.github.com/users/jaroel/following{/other_user}","gists_url":"https://api.github.com/users/jaroel/gists{/gist_id}","starred_url":"https://api.github.com/users/jaroel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaroel/subscriptions","organizations_url":"https://api.github.com/users/jaroel/orgs","repos_url":"https://api.github.com/users/jaroel/repos","events_url":"https://api.github.com/users/jaroel/events{/privacy}","received_events_url":"https://api.github.com/users/jaroel/received_events","type":"User","site_admin":false},"created_at":"2017-09-15T20:24:48Z","updated_at":"2017-09-15T20:24:48Z","author_association":"MEMBER","body":"This should do the trick\r\n\r\n```python\r\ndef traverse(self, uuid, remaining):\r\n    catalog = getToolByName(self.context, 'portal_catalog')\r\n    brains = catalog.unrestrictedSearchresults(UID=uuid)\r\n    if not brains:\r\n        raise LocationError(self.context, uuid)\r\n    return aq_inner(brains[0]. _unrestrictedGetObject())\r\n```"}}
{"actor":{"display_login":"jaroel"}}