【问题标题】:How do I enable the visual diff tool for a Dexterity content type?如何为 Dexterity 内容类型启用视觉差异工具?
【发布时间】:2011-12-20 01:15:03
【问题描述】:

我为我正在开发的 Dexterity 内容类型启用了版本控制。我目前正在使用 Plone 4.1 和 Dexterity 1.0.1。

我添加了 collective.dexteritydiff 包,并按照网站上的说明,使用 ZMI 中的 portal_diff 工具为我的内容类型添加了复合 Diff。

现在,我的内容类型项目的“历史记录”窗格中显示了“与当前比较”和“比较”链接,但是单击其中一个会产生以下堆栈跟踪:

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.CMFEditions.browser.diff, line 61, in __call__
  Module Products.CMFDiffTool.CMFDiffTool, line 156, in createChangeSet
  Module Products.CMFDiffTool.ChangeSet, line 80, in computeDiff
  Module Products.CMFDiffTool.CMFDiffTool, line 142, in computeDiff
  Module collective.dexteritydiff.compounddiff, line 37, in __init__
  Module collective.dexteritydiff.compounddiff, line 60, in _diff
  Module collective.dexteritydiff.compounddiff, line 74, in _diff_schema
  Module collective.dexteritydiff.compounddiff, line 93, in _diff_field
  Module Products.CMFDiffTool.BaseDiff, line 26, in __init__
  Module Products.CMFDiffTool.BaseDiff, line 81, in _getValue
AttributeError: subjects

我已经以编程方式为我的内容类型声明了类。有什么我需要添加到我的代码中以使差异工具工作的吗?

【问题讨论】:

    标签: plone dexterity


    【解决方案1】:

    这似乎是 collective.dexteritydiff 上的 known bug;另外,请注意 Dexterity 的 1.0.1 版本有一点漏洞;请更新至the latest one

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-03-13
      • 2019-07-26
      • 1970-01-01
      • 2016-04-30
      • 1970-01-01
      • 2013-03-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多