{"issue":{"state":"open","created_at":"2011-09-28T13:26:40Z","updated_at":"2011-11-24T09:42:32Z","comments":4,"user":{"gravatar_id":"ddb99d51a30ef6dc62fc989f698d844c","id":163725,"url":"https://api.github.com/users/Cykooz","login":"Cykooz","avatar_url":"https://secure.gravatar.com/avatar/ddb99d51a30ef6dc62fc989f698d844c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Fixed: When using utility from the package 'zope.intids', create an instance of KeyManager raises an exception 'zope.keyreference.interfaces.NotYet'.\r\n","assignee":null,"id":1764299,"number":2,"labels":[],"pull_request":{"patch_url":"https://github.com/plone/plone.keyring/pull/2.patch","html_url":"https://github.com/plone/plone.keyring/pull/2","diff_url":"https://github.com/plone/plone.keyring/pull/2.diff"},"title":"Patch for https://github.com/plone/plone.keyring/issues/1","html_url":"https://github.com/plone/plone.keyring/issues/2","closed_at":null,"milestone":null,"url":"https://api.github.com/repos/plone/plone.keyring/issues/2"},"action":"created","comment":{"created_at":"2011-11-24T09:42:32Z","updated_at":"2011-11-24T09:42:32Z","user":{"gravatar_id":"ddb99d51a30ef6dc62fc989f698d844c","id":163725,"url":"https://api.github.com/users/Cykooz","login":"Cykooz","avatar_url":"https://secure.gravatar.com/avatar/ddb99d51a30ef6dc62fc989f698d844c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"```python\r\n    from plone.keyring.interfaces import IKeyManager\r\n    from plone.keyring.keymanager import KeyManager\r\n    from zope.component.hooks import setSite\r\n    from zope.intid import IIntIds, IntIds\r\n\r\n    def site_configure(site):\r\n        setSite(site)\r\n        site_manager = site.getSiteManager()\r\n        default = site_manager['default']\r\n\r\n        intids = IntIds()\r\n        default[u'IntIds'] = intids\r\n        site_manager.registerUtility(default[u'IntIds'], IIntIds)\r\n\r\n        # The zope.keyreference.interfaces.NotYet exception is raised in the next line\r\n        default[u'KeyManager'] = KeyManager() \r\n        site_manager.registerUtility(default[u'KeyManager'], IKeyManager)\r\n```\r\n","id":2860617,"url":"https://api.github.com/repos/plone/plone.keyring/issues/comments/2860617"}}