Plone 我能';无法管理portlet
我刚刚将我的门户从3.3.5迁移到最新版本4.0.7 我重新安装并迁移了Data.fs 当我单击管理Portlet时,我无法查看de-Add Portlet组合,当我单击管理Portlet时,我看到此错误,站点崩溃:Plone 我能';无法管理portlet,plone,Plone,我刚刚将我的门户从3.3.5迁移到最新版本4.0.7 我重新安装并迁移了Data.fs 当我单击管理Portlet时,我无法查看de-Add Portlet组合,当我单击管理Portlet时,我看到此错误,站点崩溃: Traceback (innermost last): Module ZPublisher.Publish, line 127, in publish Module ZPublisher.mapply, line 77, in mapply Module ZPubl
Traceback (innermost last):
Module ZPublisher.Publish, line 127, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 47, in call_object
Module Products.Five.browser.metaconfigure, line 477, in __call__
Module Products.Five.browser.pagetemplatefile, line 126, in __call__
Module Products.Five.browser.pagetemplatefile, line 60, in __call__
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 852, in do_condition
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 954, in do_defineSlot
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 954, in do_defineSlot
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 531, in do_optTag_tal
Module zope.tal.talinterpreter, line 513, in no_tag
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 742, in do_insertStructure_tal
Module Products.PageTemplates.Expressions, line 220, in evaluateStructure
Module zope.tales.tales, line 696, in evaluate
- URL: file:/usr/local/Plone/buildout-cache/eggs/Plone-4.0.7-py2.6.egg/Products/CMFPlone/skins/plone_templates/main_template.pt
- Line 95, Column 22
- Expression: <StringExpr u'plone.leftcolumn'>
- Names:
{'args': (),
'container': <PloneSite at /Plone>,
'context': <PloneSite at /Plone>,
'default': <object object at 0x7f2637572ae0>,
'here': <PloneSite at /Plone>,
'loop': {},
'nothing': None,
'options': {},
'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0xa39a730>,
'request': <HTTPRequest, URL=http://192.168.198.39:8080/Plone/@@manage-group-portlets>,
'root': <Application at >,
'template': <Products.Five.browser.pagetemplatefile.ViewPageTemplateFile object at 0x7375550>,
'traverse_subpath': [],
'user': <PloneUser 'mlopez'>,
'view': <Products.Five.metaclass.SimpleViewClass from /usr/local/Plone/buildout-cache/eggs/plone.app.portlets-2.0.4-py2.6.egg/plone/app/portlets/browser/templates/manage-group.pt object at 0xa392890>,
'views': <Products.Five.browser.pagetemplatefile.ViewMapper object at 0x9da9f90>}
Module zope.contentprovider.tales, line 80, in __call__
Module plone.app.portlets.browser.editmanager, line 66, in render
Module Products.Five.browser.pagetemplatefile, line 126, in __call__
Module Products.Five.browser.pagetemplatefile, line 60, in __call__
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 531, in do_optTag_tal
Module zope.tal.talinterpreter, line 513, in no_tag
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 819, in do_loop_tal
Module zope.tales.tales, line 682, in setRepeat
Module zope.tales.tales, line 696, in evaluate
- URL: /usr/local/Plone/buildout-cache/eggs/plone.app.portlets-2.0.4-py2.6.egg/plone/app/portlets/browser/templates/edit-manager-macros.pt
- Line 45, Column 8
- Expression: <PathExpr standard:u'view/portlets'>
- Names:
{'args': (),
'container': <PloneSite at /Plone>,
'context': <PloneSite at /Plone>,
'default': <object object at 0x7f2637572ae0>,
'here': <PloneSite at /Plone>,
'loop': {},
'nothing': None,
'options': {},
'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0xa37c838>,
'request': <HTTPRequest, URL=http://192.168.198.39:8080/Plone/@@manage-group-portlets>,
'root': <Application at >,
'template': <Products.Five.browser.pagetemplatefile.ViewPageTemplateFile object at 0x737f510>,
'traverse_subpath': [],
'user': <PloneUser 'mlopez'>,
'view': <plone.app.portlets.browser.editmanager.EditPortletManagerRenderer object at 0xa39b610>,
'views': <Products.Five.browser.pagetemplatefile.ViewMapper object at 0xa39be10>}
Module zope.tales.expressions, line 217, in __call__
Module Products.PageTemplates.Expressions, line 157, in _eval
Module Products.PageTemplates.Expressions, line 119, in render
Module plone.app.portlets.browser.editmanager, line 78, in portlets
Module plone.memoize.view, line 47, in memogetter
Module plone.app.portlets.browser.editmanager, line 171, in _lazyLoadAssignments
Module plone.app.portlets.browser.manage, line 213, in getAssignmentsForManager
Module zope.container.btree, line 88, in __getitem__
KeyError: 'group'
回溯(最里面的最后一个):
发布中模块ZPublisher.Publish,第127行
模块ZPublisher.mapply,第77行,在mapply中
模块ZPublisher.Publish,第47行,在call_对象中
模块Products.Five.browser.metaconfigure,第477行,in__调用__
模块Products.Five.browser.pagetemplatefile,第126行,在调用中__
模块Products.Five.browser.pagetemplatefile,第60行,在调用中__
模块zope.pagetemplate.pagetemplate,第113行,在pt_渲染中
模块zope.tal.t interpreter,第271行,输入调用__
模块zope.tal.t解释程序第343行
do_useMacro中的模块zope.tal.tInterpreter,第888行
模块zope.tal.t解释程序第343行
do_optTag_tal中模块zope.tal.tInterpreter,第533行
do_optTag中第518行模块zope.tal.tInterpreter
模块zope.tal.tInterpreter,第513行,无标签
模块zope.tal.t解释程序第343行
模块zope.tal.t第852行的interpreter处于do_状态
模块zope.tal.t解释程序第343行
do_optTag_tal中模块zope.tal.tInterpreter,第533行
do_optTag中第518行模块zope.tal.tInterpreter
模块zope.tal.tInterpreter,第513行,无标签
模块zope.tal.t解释程序第343行
do_defineSlot中模块zope.tal.tInterpreter,第954行
模块zope.tal.t解释程序第343行
模块zope.tal.t第852行的interpreter处于do_状态
模块zope.tal.t解释程序第343行
do_defineSlot中模块zope.tal.tInterpreter,第954行
模块zope.tal.t解释程序第343行
do_optTag_tal中模块zope.tal.tInterpreter,第533行
do_optTag中第518行模块zope.tal.tInterpreter
模块zope.tal.tInterpreter,第513行,无标签
模块zope.tal.t解释程序第343行
do_optTag_tal中模块zope.tal.tInterpreter,第531行
模块zope.tal.tInterpreter,第513行,无标签
模块zope.tal.t解释程序第343行
do_insertStructure_tal中模块zope.tal.tInterpreter,第742行
evaluateStructure中模块Products.PageTemplates.Expressions,第220行
模块zope.tales.tales,第696行,在评估中
-URL:file:/usr/local/Plone/buildout cache/eggs/Plone-4.0.7-py2.6.egg/Products/CMFPlone/skins/Plone\u templates/main\u template.pt
-第95行第22列
-表达方式:
-姓名:
{'args':(),
“容器”:,
“上下文”:,
“默认值”:,
“这里”:,
'循环':{},
“没有”:没有,
“选项”:{},
“重复”:,
“请求”:,
“根”:,
“模板”:,
“遍历子路径”:[],
“用户”:,
“视图”:,
“视图”:
模块zope.contentprovider.tales,第80行,输入调用__
渲染中的模块plone.app.portlets.browser.editmanager,第66行
模块Products.Five.browser.pagetemplatefile,第126行,在调用中__
模块Products.Five.browser.pagetemplatefile,第60行,在调用中__
模块zope.pagetemplate.pagetemplate,第113行,在pt_渲染中
模块zope.tal.t interpreter,第271行,输入呼叫
模块zope.tal.t解释程序第343行
do_optTag_tal中模块zope.tal.tInterpreter,第531行
模块zope.tal.tInterpreter,第513行,无标签
模块zope.tal.t解释程序第343行
do_useMacro中的模块zope.tal.tInterpreter,第888行
模块zope.tal.t解释程序第343行
模块zope.tal.tInterpreter,第819行,在do_循环中
模块zope.tales.tales,第682行,设置重复
模块zope.tales.tales,第696行,在评估中
-URL:/usr/local/Plone/buildout cache/eggs/Plone.app.portlets-2.0.4-py2.6.egg/Plone/app/portlets/browser/templates/edit-manager-macros.pt
-第45行第8栏
-表达方式:
-姓名:
{'args':(),
“容器”:,
“上下文”:,
“默认值”:,
“这里”:,
'循环':{},
“没有”:没有,
“选项”:{},
“重复”:,
“请求”:,
“根”:,
“模板”:,
“遍历子路径”:[],
“用户”:,
“视图”:,
“视图”:
模块zope.tales.expressions,第217行,输入调用__
模块Products.PageTemplates.Expressions,第157行,评估中
渲染中的模块Products.PageTemplates.Expressions,第119行
模块plone.app.portlets.browser.editmanager,第78行,在portlet中
memogetter中第47行的plone.memoize.view模块
模块plone.app.portlets.browser.editmanager,第171行,in_lazyLoadAssignments
getAssignmentsForManager中的模块plone.app.portlets.browser.manage,第213行
模块zope.container.btree,第88行,在u getitem中__
KeyError:“组”
x您的站点中似乎有一个已损坏的portlet管理器;它缺少“组”类别。不过,这种情况通常不会发生 您可以打开plone.app.portlets.browser.manage模块,插入PDB调试提示,查看这是什么管理器。在bin/instance脚本中查找
plone.app.portlets
egg以找到其路径,然后打开您最喜欢的文本编辑器中的plone/app/portlets/browser/manage.py
。插入您的导入pdb;pdb.在第213行之前设置_trace()
行,在前台模式下运行plone站点(bin/instance fg
)并开始四处搜索<代码>管理器。_名称_应该很有意思,例如,弄清楚这是什么管理器
然后,您可以尝试通过插入空的类别映射器来修复此问题:
from plone.portlets.storage import PortletCategoryMapping
from plone.portlets.constants import GROUP_CATEGORY
column[GROUP_CATEGORY] = PortletCategoryMapping()
不过,你可能要小心这一点;这里可能还有其他问题。迁移之前您还安装了哪些软件包?我在迁移之前安装了TinyMCE