停用plone.app.toolbar和plone.app.widgets

时间:2013-09-17 18:50:13

标签: plone

我们在Kim's fancy PloneEDU demo last week之后测试了新的plone.app.toolbar,不幸的是在停用它时遇到了一些障碍,它是依赖产品plone.app.widgets。这是我们在这台服务器上安装的内容:

  • Plone 4.3
  • Zope 2.13.19
  • Python 2.7.3
  • Plone Toolbar 1.3.0
  • Plone Widgets 1.3.3

卸载这两种产品后,我们的症状主要是普通Plone的绿色“编辑栏”不起作用,或者是古怪的。

如果我们安装了plone.app.widgets,绿色条很适合,除了“添加新”下拉列表没有显示,它只是在点击“添加新”时将你踢到folder_factories。还有一些其他奇怪的东西,但没有什么是激烈的。

然而!卸载后:点击绿色栏上的“编辑”按钮会引发以下追踪错误(在Firefox和Safari中) -

只是想知道这些症状是否听起来很熟悉,或者它们是否易于修复?如果不是,我们可能会忍受“添加新”无法正常工作,或者找到一种方法将所有内容移动到服务器上的新站点(这是一个相对较小的网站仍处于开发阶段,因此并不紧急)。

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 Products.CMFFormController.FSControllerPageTemplate, line 91, in __call__
  Module Products.CMFFormController.BaseControllerPageTemplate, line 31, in _call
  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 132, in pt_render
   - Warning: Macro expansion failed
   - Warning: <type 'exceptions.KeyError'>: 'macro'
  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 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 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 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 858, in do_defineMacro
  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 946, 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 858, in do_defineMacro
  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 888, in do_useMacro
  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 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 821, in do_loop_tal
  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 533, in do_optTag_tal
  Module zope.tal.talinterpreter, line 522, in do_optTag
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 821, in do_loop_tal
  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 867, in do_useMacro
  Module zope.tales.tales, line 696, in evaluate
   - URL: file:/usr/local/Plone/buildout-cache/eggs/Products.Archetypes-1.8.7-py2.7.egg/Products/Archetypes/skins/archetypes/edit_macros.pt
   - Line 105, Column 20
   - Expression: <PythonExpr context.widget(field.getName(), mode='edit')>
   - Names:
      {'container': <PloneSite at /Honey>,
       'context': <Collection at /Honey/events/aggregator>,
       'default': <object object at 0x14e84e0>,
       'here': <Collection at /Honey/events/aggregator>,
       'loop': {u'field': <Products.PageTemplates.Expressions.PathIterator object at 0x7f51812a83d0>,
                u'fieldset': <Products.PageTemplates.Expressions.PathIterator object at 0x7f51810cc5d0>},
       'nothing': None,
       'options': {'args': (),
                   'state': <Products.CMFFormController.ControllerState.ControllerState object at 0x7f517c88a8d0>},
       'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x7f51812beba8>,
       'request': <HTTPRequest, URL=http://169.237.124.22:8080/Honey/events/aggregator/atct_edit>,
       'root': <Application at >,
       'template': <FSControllerPageTemplate at /Honey/atct_edit used for /Honey/events/aggregator>,
       'traverse_subpath': [],
       'user': <PloneUser 'cydoval'>}
  Module Products.PageTemplates.ZRPythonExpr, line 48, in __call__
   - __traceback_info__: context.widget(field.getName(), mode='edit')
  Module PythonExpr, line 1, in <expression>
  Module Products.Archetypes.BaseObject, line 287, in widget
  Module Products.Archetypes.Renderer, line 26, in render
  Module Products.Archetypes.generator.widget, line 147, in __call__
AttributeError: Macro patterns_widget does not exist for <Collection at aggregator>

奖励!只是尝试在同一台服务器上添加一个全新的Plone网站 - 绿色“添加新”菜单和用户首选项的下拉菜单也不起作用。

1 个答案:

答案 0 :(得分:2)

您需要从buildout中删除产品 - 从buildout中删除,重新运行buildout,重新启动客户端。似乎某些plone.app.widgets覆盖会影响plone站点,即使它们未被激活也是如此。

plone.app.widgets仍在开发中,你所使用的版本在生产网站上安装可能不太安全。

很快就会找到一个新版本 - 只有一个sprint修复了很多错误。