我正在尝试在Plone 4.2版上安装一个名为anthill.exampletheme 0.2的Plone皮肤,但它会不断返回下面的错误。扩展,anthill.skinner 0.8安装并运行良好,但不是示例主题。请帮忙!
Traceback (innermost last):
Module ZPublisher.Publish, line 126, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 46, in call_object
Module Shared.DC.Scripts.Bindings, line 322, in __call__
Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
Module Products.CMFCore.FSPageTemplate, line 237, in _exec
Module Products.CMFCore.FSPageTemplate, line 177, in pt_render
Module Products.PageTemplates.PageTemplate, line 79, in pt_render
Module zope.pagetemplate.pagetemplate, line 113, in pt_render
Module zope.tal.talinterpreter, line 271, in __call__
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 888, in do_useMacro
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 533, in do_optTag_tal
Module zope.tal.talinterpreter, line 518, in do_optTag
Module zope.tal.talinterpreter, line 513, in no_tag
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 583, in do_setLocal_tal
Module zope.tales.tales, line 696, in evaluate
URL: file:c:\plone42\eggs\anthill.exampletheme-0.2-py2.6.egg\anthill\exampletheme\skins\anthill_exampletheme_custom_templates\main_template.pt
Line 9, Column 0
Expression: <PathExpr standard:u'language'>
Names:
{'container': <PloneSite at /test>,
'context': <PloneSite at /test>,
'default': <object object at 0x00991838>,
'here': <PloneSite at /test>,
'loop': {},
'nothing': None,
'options': {'args': ()},
'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x08794A20>,
'request': <HTTPRequest, URL=http://localhost:8080/test/portal_skins/index_html>,
'root': <Application at >,
'template': <FSPageTemplate at /test/index_html>,
'traverse_subpath': [],
'user': <PropertiedUser 'admin'>}
Module zope.tales.expressions, line 217, in __call__
Module Products.PageTemplates.Expressions, line 147, in _eval
Module zope.tales.expressions, line 118, in _eval
KeyError: 'language'
答案 0 :(得分:3)
根据:
anthill.exampletheme的main_template不兼容Plone 4。将它的main_template替换为Plone 4 main_template(例如来自sunburst),你可能会更进一步。