我已经在 Plone 4.3.1 上安装了集体轮播 1.5(注意:我使用的是 1.6 并且遇到了同样的错误,希望这是一个回归错误或其他东西)。
然后,我创建了一个与站点上的集合相关联的轮播 portlet。
当我转到包含 portlet 的页面时,我收到以下错误:
KeyError: 'carousel-portlet-view'
这是回溯:
- URL: /usr/local/share/plone/buildout-cache/eggs/collective.carousel-1.5-py2.7.egg/collective/carousel/po
rtlets/carousel.pt
- Line 44, Column 28
- Expression: <PythonExpr (view.get_tile(item_object))>
- Names:
{'args': (),
'container': <Collection at /mysite/aggregator>,
'context': <Collection at /mysite/aggregator>,
'default': <object object at 0x7fb332672b40>,
'here': <Collection at /mysite/aggregator>,
'loop': {},
'nothing': None,
'options': {},
'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x86704c8>,
'request': <HTTPRequest, URL=http://mysite.com/aggregator/folder_summary_view>,
'root': <Application at >,
'template': <Products.Five.browser.pagetemplatefile.ViewPageTemplateFile object at 0x69f4610>,
'traverse_subpath': [],
'user': <PropertiedUser 'admin'>,
'view': <collective.carousel.portlets.carousel.Renderer object at 0x8671d50>,
'views': <Products.Five.browser.pagetemplatefile.ViewMapper object at 0x86742d0>}
Module zope.tales.pythonexpr, line 59, in __call__
- __traceback_info__: (view.get_tile(item_object))
Module <string>, line 1, in <module>
Module collective.carousel.portlets.carousel, line 177, in get_tile
Module OFS.Traversable, line 300, in unrestrictedTraverse
- __traceback_info__: ([], 'carousel-portlet-view')
KeyError: 'carousel-portlet-view'