【问题标题】:Dexterity and TinyMCE 1.3 on Plone 4.1.6Plone 4.1.6 上的敏捷和 TinyMCE 1.3
【发布时间】: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 可供我使用且不会导致此错误?

【问题讨论】:

    标签: tinymce plone dexterity


    【解决方案1】:

    您不能在 Plone 4.1(Plone 4.2 都不是)上使用 Products.TinyMCE 的分支 1.3,因为在某些时候引入了 plone.app.layout &gt;=2.3.7 的硬依赖;你被分支 1.2 卡住了。

    【讨论】:

    • 谢谢,赫克托。不幸的是,这个版本不包括我需要的修复。
    • 问题是this commit;您可以尝试发布 1.3.5。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-08-09
    • 2020-09-17
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多