Plone 4.1.6上的敏捷和TinyMCE 1.3

时间:2016-02-19 19:18:50

标签: tinymce plone dexterity

版本:

  • Plone 4.1.6
  • TinyMCE 1.3.5
  • plone.app.dexterity 1.2.1
  • plone.dexterity 1.1.2

我正在网站上升级TinyMCE以修复我们在旧版本中看到的一些错误。但升级到1.3.5后,编辑自定义灵巧类型会引发此错误:

    URL: file:/Users/chrissy/.buildout/eggs/Products.TinyMCE-1.3.5-py2.6.egg/Products/TinyMCE/skins/tinymce/tinymce_wysiwyg_support.pt
Line 6, Column 2
Expression: <PythonExpr configuration_method(field=field)>
Names:

{'args': (),
 'context': <Container at /a4a/archives/2012>,
 'default': <object object at 0x107e61ca0>,
 'loop': {},
 'nothing': None,
 'options': {},
 'repeat': {},
 'request': <HTTPRequest, URL=http://localhost:51117/a4a/archives/2012/++add++a4a.archives.historyitem>,
 'template': <zope.browserpage.viewpagetemplatefile.ViewPageTemplateFile object at 0x10e662e50>,
 'view': <RichTextWidget 'form.widgets.text'>,
 'views': <zope.browserpage.viewpagetemplatefile.ViewMapper object at 0x110605cd0>}

Module Products.PageTemplates.ZRPythonExpr, line 48, in __call__
__traceback_info__: configuration_method(field=field)
Module PythonExpr, line 1, in <expression>
Module Products.TinyMCE.browser.browser, line 127, in jsonConfiguration
Module Products.TinyMCE.utility, line 957, in getConfiguration
Module Products.CMFPlone.browser.ploneview, line 309, in bodyClass
Module plone.app.layout.globals.layout, line 133, in bodyClass

AttributeError: 'View' object has no attribute 'getId' 

自定义类型正在使用plone.app.textfield.RichText。默认类型(使用Archetypes)工作正常。

我正在使用最新的Dexterity,它将适用于这个版本的Plone,但是我可以使用不同版本的TinyMCE,这不会导致此错误吗?

1 个答案:

答案 0 :(得分:1)

你不能在Plone 4.1上使用Products.TinyMCE的分支1.3(没有Plone 4.2),因为在某些时候引入了plone.app.layout >=2.3.7的硬依赖;你被分支机构1.2困住了。