Plone 呈现collective.carousel portlet时出错

Plone 呈现collective.carousel portlet时出错,plone,carousel,portlet,Plone,Carousel,Portlet,我已经在Plone 4.3.1上安装了collective carousel 1.5(注意:我使用的是1.6,并且得到了相同的错误,希望这是一个回归错误或其他东西) 然后,我创建了一个与站点上的集合关联的carouselportlet 当我转到包含portlet的页面时,会出现以下错误: KeyError: 'carousel-portlet-view' 以下是回溯: - URL: /usr/local/share/plone/buildout-cache/eggs/collective.ca

我已经在Plone 4.3.1上安装了collective carousel 1.5(注意:我使用的是1.6,并且得到了相同的错误,希望这是一个回归错误或其他东西)

然后,我创建了一个与站点上的集合关联的carouselportlet

当我转到包含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' 
-URL:/usr/local/share/plone/buildout cache/eggs/collective.carousel-1.5-py2.7.egg/collective/carousel/po
RTlet/carousel.pt
-第44行第28列
-表达方式:
-姓名:
{'args':(),
“容器”:,
“上下文”:,
“默认值”:,
“这里”:,
'循环':{},
“没有”:没有,
“选项”:{},
“重复”:,
“请求”:,
“根”:,
“模板”:,
“遍历子路径”:[],
“用户”:,
“视图”:,
“视图”:
模块zope.tales.pythonexpr,第59行,在调用中
-_uu回溯_u信息_uuu:(查看.获取_平铺(项目\u对象))
模块,第1行,输入
模块collective.carousel.portlets.carousel,第177行,在get_平铺中
不受限制行程中的S.可穿越模块,第300行
-_uuu回溯uuu信息:([],'carouselportlet视图')
KeyError:“carouselportlet视图”

查看中为名称注册的视图 你可以看到这些都是特定于原型的


根据您的评论信息,您正在使用dexterity,我想您需要为您的dexterity内容类型注册一个视图。

查看中为名称
carousel portelt视图注册的视图
你可以看到这些都是特定于原型的


根据您的评论信息,您正在使用Dextrity,我想您需要为您的Dextrity内容类型注册一个视图。

FYI对于简单用例,我知道carousel portlet用例有一个替代方案,但是该用例依赖于一组自定义的基于Dextrity的内容类型。其目的是自定义旋转木马视图以显示内容类型。如果仍要解决此问题,可能需要提供有关所做自定义的更多信息。在具有给定版本的普通站点上运行良好。仅供参考,对于简单用例,我知道carousel portlet用例有一个替代方案,但是此用例依赖于一组自定义的基于灵活性的内容类型。其目的是自定义旋转木马视图以显示内容类型。如果仍要解决此问题,可能需要提供有关所做自定义的更多信息。在具有给定版本的普通站点上运行良好。这看起来是正确的方向。因此,我要么只需要在旋转木马中使用基于原型的内容,要么扩展产品以支持基于灵巧性的内容。这看起来是正确的方向。因此,我要么只需要在旋转木马中使用基于原型的内容,要么扩展产品以支持基于灵巧性的内容。