ValueError:不允许的子对象类型:Products.PressRoom Plone 4.3的主题

时间:2015-12-10 10:39:15

标签: plone plone-4.x

我在Plone 4.3.7实例上安装了Products.PressRoom 3.3。当我尝试在站点根目录创建新闻发布室时,我得到ValueError: Disallowed subobject type: Topic

Traceback (innermost last):
Module ZPublisher.Publish, line 138, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 48, in call_object
Module Products.CMFFormController.FSControllerPythonScript, line 105, in __call__
Module Products.CMFFormController.Script, line 145, in __call__
Module Products.CMFCore.FSPythonScript, line 127, in __call__
Module Shared.DC.Scripts.Bindings, line 322, in __call__
Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
Module Products.PythonScripts.PythonScript, line 344, in _exec
Module script, line 35, in createObject
- <FSControllerPythonScript at /le-temps-pour-toit-one/createObject>
- Line 35
Module Products.CMFCore.PortalFolder, line 292, in invokeFactory
Module Products.CMFCore.TypesTool, line 833, in constructContent
Module Products.CMFCore.TypesTool, line 311, in constructInstance
Module Products.CMFCore.TypesTool, line 552, in _constructInstance
Module Products.PressRoom.content.PressRoom, line 7, in addPressRoom
Module Products.PressRoom.content.PressRoom, line 135, in initializeArchetype
Module Products.PressRoom.content.PressRoom, line 166, in _createSubFolders
Module Products.ATContentTypes.lib.constraintypes, line 280, in invokeFactory
ValueError: Disallowed subobject type: Topic

任何人都可以帮我解决这个问题吗?

谢谢

1 个答案:

答案 0 :(得分:2)

从Plone 4.2开始,不推荐使用Collection内容类型。

所以你可以:

  1. 启用旧样式集合(正如您所做的那样),前进的方法就是将其标记为全局可添加。但通过这种方式,您将在网站
  2. 中拥有两种类型的集合
  3. 修复PressRoom包以使用Topic而不是{{1}}。如果你很幸运,它只会“正常”。考虑将问题打开到project issue tracker