1

私は古い3.3.xインスタンスでこれを見始めました:

       'views': <zope.app.pagetemplate.viewpagetemplatefile.ViewMapper object at 0x1153346c>}
  Module zope.tales.expressions, line 217, in __call__
  Module Products.PageTemplates.Expressions, line 163, in _eval
  Module Products.PageTemplates.Expressions, line 125, in render
  Module Products.Archetypes.ClassGen, line 56, in generatedAccessor
  Module wicked.fieldevent, line 29, in render
  Module zope.event, line 23, in notify
  Module zope.component.event, line 26, in dispatch
  Module zope.component._api, line 130, in subscribers
  Module zope.component.registry, line 290, in subscribers
  Module zope.interface.adapter, line 583, in subscribers
  Module wicked.fieldevent, line 16, in notifyFieldEvent
  Module zope.component._api, line 101, in getMultiAdapter
  Module zope.component._api, line 114, in queryMultiAdapter
  Module zope.component.registry, line 206, in queryMultiAdapter
  Module zope.interface.adapter, line 530, in queryMultiAdapter
  Module wicked.fieldevent.meta, line 78, in field_value
  Module Products.Archetypes.Field, line 1394, in get
  Module Products.Archetypes.BaseUnit, line 100, in transform
  Module Products.PortalTransforms.TransformEngine, line 181, in convertTo
  Module Products.PortalTransforms.chain, line 51, in convert
  Module Products.PortalTransforms.Transform, line 192, in convert
  Module plone.outputfilters.transforms.html_to_plone_outputfilters_html, line 47, in convert
  Module plone.outputfilters, line 6, in apply_filters
  Module plone.outputfilters.filters.resolveuid_and_caption, line 103, in __call__
  Module sgmllib, line 95, in feed
  Module sgmllib, line 129, in goahead
  Module sgmllib, line 283, in parse_starttag
  Module sgmllib, line 314, in finish_starttag
  Module plone.outputfilters.filters.resolveuid_and_caption, line 349, in unknown_starttag
TypeError: <lambda>() got an unexpected keyword argument 'quote'

それは明らかに、適切なピンダウンで解決できるPlone3.3.xおよびplone.outputfiltersとのある種の互換性の問題です。ただし、どのコンポーネントが関係しているか、したがってこれを修正するための既知のグッドセットは何かわかりません。

すべてのサイトを移行する前に、これに対する一時的な解決策を取得したいと思います。古いものは、放置しても壊れてはいけないからです:(

また、最新のセキュリティ修正が含まれている可能性があります。

4

2 に答える 2

3

I too have a few old 3.3.5 sites and just started seeing this error. Pinning plone.outputfilters to version 1.6 seems to fix it so far. I.e., in buildout.cfg

[versions]
...
plone.outputfilters = 1.6
于 2013-03-21T09:11:18.997 に答える
1

TinyMCEを使用していると思いますが、これはp.outputfiltersをプルします。

As with the Plone-3-series the default editor is Kupu, this changement can be the cause and apparently has been fixed in the Plone-core: https://dev.plone.org/ticket/9938

Quoting David Glick: "For historical reasons, these transformations are implemented in both kupu and TinyMCE. This has been a maintenance problem, as bugfixes for these features in one of the packages usually don't get ported to the other."

You'll have to apply a patch according to these changements, I suppose.

Also this changement could be relevant as this topic concerns both, the core and the third-party-editor code: https://github.com/plone/plone.outputfilters/commit/e5067c8ef1894d1017d6bc81c5969112676840d5#plone/outputfilters/filters/resolveuid_and_caption.py

Using the current unreleased dev-branch of p.outputfilters (1.9 by time of writing) could help, too.

于 2013-02-08T09:30:12.617 に答える