【发布时间】:2016-02-20 03:48:52
【问题描述】:
版本:
- 克隆 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)工作正常。
我正在使用可在此版本的 Plone 上运行的最新 Dexterity,但是否有其他版本的 TinyMCE 可供我使用且不会导致此错误?
【问题讨论】: