{"action":"closed","issue":{"url":"https://api.github.com/repos/plone/Products.CMFPlone/issues/2429","repository_url":"https://api.github.com/repos/plone/Products.CMFPlone","labels_url":"https://api.github.com/repos/plone/Products.CMFPlone/issues/2429/labels{/name}","comments_url":"https://api.github.com/repos/plone/Products.CMFPlone/issues/2429/comments","events_url":"https://api.github.com/repos/plone/Products.CMFPlone/issues/2429/events","html_url":"https://github.com/plone/Products.CMFPlone/issues/2429","id":325832410,"node_id":"MDU6SXNzdWUzMjU4MzI0MTA=","number":2429,"title":"Collections preview fails in python 3","user":{"login":"pbauer","id":453208,"node_id":"MDQ6VXNlcjQ1MzIwOA==","avatar_url":"https://avatars1.githubusercontent.com/u/453208?v=4","gravatar_id":"","url":"https://api.github.com/users/pbauer","html_url":"https://github.com/pbauer","followers_url":"https://api.github.com/users/pbauer/followers","following_url":"https://api.github.com/users/pbauer/following{/other_user}","gists_url":"https://api.github.com/users/pbauer/gists{/gist_id}","starred_url":"https://api.github.com/users/pbauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbauer/subscriptions","organizations_url":"https://api.github.com/users/pbauer/orgs","repos_url":"https://api.github.com/users/pbauer/repos","events_url":"https://api.github.com/users/pbauer/events{/privacy}","received_events_url":"https://api.github.com/users/pbauer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"davisagli","id":49014,"node_id":"MDQ6VXNlcjQ5MDE0","avatar_url":"https://avatars0.githubusercontent.com/u/49014?v=4","gravatar_id":"","url":"https://api.github.com/users/davisagli","html_url":"https://github.com/davisagli","followers_url":"https://api.github.com/users/davisagli/followers","following_url":"https://api.github.com/users/davisagli/following{/other_user}","gists_url":"https://api.github.com/users/davisagli/gists{/gist_id}","starred_url":"https://api.github.com/users/davisagli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davisagli/subscriptions","organizations_url":"https://api.github.com/users/davisagli/orgs","repos_url":"https://api.github.com/users/davisagli/repos","events_url":"https://api.github.com/users/davisagli/events{/privacy}","received_events_url":"https://api.github.com/users/davisagli/received_events","type":"User","site_admin":false},"assignees":[{"login":"davisagli","id":49014,"node_id":"MDQ6VXNlcjQ5MDE0","avatar_url":"https://avatars0.githubusercontent.com/u/49014?v=4","gravatar_id":"","url":"https://api.github.com/users/davisagli","html_url":"https://github.com/davisagli","followers_url":"https://api.github.com/users/davisagli/followers","following_url":"https://api.github.com/users/davisagli/following{/other_user}","gists_url":"https://api.github.com/users/davisagli/gists{/gist_id}","starred_url":"https://api.github.com/users/davisagli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davisagli/subscriptions","organizations_url":"https://api.github.com/users/davisagli/orgs","repos_url":"https://api.github.com/users/davisagli/repos","events_url":"https://api.github.com/users/davisagli/events{/privacy}","received_events_url":"https://api.github.com/users/davisagli/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-05-23T18:57:16Z","updated_at":"2018-06-25T20:47:37Z","closed_at":"2018-06-25T20:47:37Z","author_association":"MEMBER","body":"The preview of collections fails since `plone.app.contentlisting` cannot adapt lists to `IContentListingObject` even though `list` is registered like this:\r\n\r\n\r\n```\r\n  <adapter\r\n      factory=\".contentlisting.ContentListing\"\r\n      for=\"list\"\r\n      />\r\n```\r\n\r\nThe method `ContentListing.__getitem__` is actually called in a template and the item in question is a list.\r\n\r\n```\r\n[12]   /Users/pbauer/workspace/plip/src/plone.app.querystring/plone/app/querystring/querybuilder.py(112)html_results()\r\n-> )(**options)\r\n[13]   /Users/pbauer/workspace/plip/src/plone.app.querystring/plone/app/querystring/querybuilder.py(38)__call__()\r\n-> return self.index(**kw)\r\n[14]   /Users/pbauer/workspace/plip/src/Zope/src/Products/Five/browser/pagetemplatefile.py(125)__call__()\r\n-> return self.__func__(__self__, *args, **kw)\r\n[15]   /Users/pbauer/workspace/plip/src/Zope/src/Products/Five/browser/pagetemplatefile.py(60)__call__()\r\n-> sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),\r\n[16]   /Users/pbauer/.cache/buildout/eggs/zope.pagetemplate-4.3.0-py3.6.egg/zope/pagetemplate/pagetemplate.py(134)pt_render()\r\n-> strictinsert=0, sourceAnnotations=sourceAnnotations\r\n[17]   /Users/pbauer/workspace/plip/src/Zope/src/Products/PageTemplates/engine.py(85)__call__()\r\n-> return self.template.render(**kwargs)\r\n[18]   /Users/pbauer/.cache/buildout/eggs/z3c.pt-3.1.0-py3.6.egg/z3c/pt/pagetemplate.py(158)render()\r\n-> return base_renderer(**context)\r\n[19]   /Users/pbauer/workspace/plip/src/chameleon/src/chameleon/zpt/template.py(297)render()\r\n-> return super(PageTemplate, self).render(**_kw)\r\n[20]   /Users/pbauer/workspace/plip/src/chameleon/src/chameleon/template.py(171)render()\r\n-> self._render(stream, econtext, rcontext)\r\n[21]   /Users/pbauer/workspace/plip/84d83f2d4816870e860f7cdc1d8117a6.py(128)render()\r\n[22] > /Users/pbauer/workspace/plip/src/plone.app.contentlisting/plone/app/contentlisting/contentlisting.py(30)__getitem__()\r\n-> return IContentListingObject(self._basesequence[index])\r\n(Pdb++) n\r\nTypeError: ('Could not adapt', [<Products.ZCatalog.Catalog.Catalog.useBrains.<locals>.mybrains object at 0x109bb3ea0>, <Products.ZCatalog.Catalog.Catalog.useBrains.<locals>.mybrains object at 0x109bb32d0>, <Products.ZCatalog.Catalog.Catalog.useBrains.<locals>.mybrains object at 0x109bb3438>], <InterfaceClass plone.app.contentlisting.interfaces.IContentListingObject>)\r\n(Pdb++) type(self._basesequence[index])\r\n<class 'list'>\r\n```\r\n"}}
{"actor":{"display_login":"davisagli"}}