我已经为AuthenticatedUsers组创建了一个静态portlet,并在页面加载时出现此错误:呈现portlet时出错。其他类型的portlet不会产生错误
客户端1 / Event.log:
2016-06-02T16:43:35 ERROR Zope.SiteErrorLog 1464896615.090.768319144619 <site>/front-page/document_view
Traceback (innermost last):
Module Products.PloneFormGen.patches, line 21, in safe_render
Module Products.Five.browser.pagetemplatefile, line 125, in __call__
Module Products.Five.browser.pagetemplatefile, line 59, in __call__
Module zope.pagetemplate.pagetemplate, line 132, in pt_render
Module zope.pagetemplate.pagetemplate, line 240, in __call__
Module zope.tal.talinterpreter, line 271, in __call__
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 852, in do_condition
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 742, in do_insertStructure_tal
Module Products.PageTemplates.Expressions, line 218, in evaluateStructure
Module zope.tales.tales, line 696, in evaluate
- URL: /usr/local/Plone/buildout-cache/eggs/plone.portlet.static-2.0.3-py2.7.egg/plone/portlet/static/static.pt
- Line 1, Column 0
- Expression: <PathExpr standard:u'view/transformed'>
- Names:
{'args': (),
'container': <ATDocument at /eleitoral/front-page>,
'context': <ATDocument at /eleitoral/front-page>,
'default': <object object at 0x7fc7329c4500>,
'here': <ATDocument at /eleitoral/front-page>,
'loop': {},
'nothing': None,
'options': {},
'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x7fc71a6777e0>,
'request': <HTTPRequest, URL=<site>/front-page/document_view>,
'root': <Application at >,
'template': <Products.Five.browser.pagetemplatefile.ViewPageTemplateFile object at 0x7fc723f6d390>,
'traverse_subpath': [],
'user': <PloneUser 'lhmp1967'>,
'view': <plone.portlet.static.static.Renderer object at 0x7fc71b031690>,
'views': <Products.Five.browser.pagetemplatefile.ViewMapper object at 0x7fc71a67c790>}
Module zope.tales.expressions, line 217, in __call__
Module Products.PageTemplates.Expressions, line 155, in _eval
Module Products.PageTemplates.Expressions, line 117, in render
Module plone.portlet.static.static, line 137, in transformed
Module OFS.Traversable, line 317, in restrictedTraverse
Module OFS.Traversable, line 285, in unrestrictedTraverse
- __traceback_info__: ([], 'AuthenticatedUsers')
AttributeError: AuthenticatedUsers
答案 0 :(得分:3)
plone.portlet.static Version 2.0.3
表示您正在使用Plone 4.3.4
,因为Plone 4.3.3有plone.portlet.static Version 2.0.2
而Plone 4.3.5
有plone.portlet.static Version 2.0.4
。
plone.portlet.static (2.0.4)
的下一个修正版本修复了您的问题。
检查:https://github.com/plone/plone.portlet.static/commit/089012f2e4d7cf911c1361a3b0de334b3f1145c2
对于除context portlets
之外的其他类别,已修复portlet分配上下文。
您可以仅将portlet升级到版本2.0.4,或者将整个站点升级到Plone 4.3.5
。