2013-02-07 32 views
1

我已經開始見到這對老3.3.x實例:plone.outputfilters.filters.resolveuid_and_caption:得到了一個意想不到的關鍵字參數「報價」

 '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' 

它顯然某種兼容性問題與Plone的3.3。 x和plone.outputfilters可以用適當的pindowns解決。不過,我不確定涉及哪些組件,因此已知的好設置來解決這個問題。

我想獲得的所有站點遷移之前得到這種治標不治本的,因爲舊的東西不應該只是打破,如果你離開它無人:(

而且最新的安全修補程序可能與此有關。

+0

outputfilters不是修補程序的一部分。你使用的是什麼版本的plone.outputfilters?我認爲這個軟件包是用於plone 4的。 – vangheem

+0

如果它是用於Plone 4的話,它會以某種方式被拉進Plone 3。版本是plone.outputfilters 1.8。它應該*不*出現在Plone 3中? –

回答

3

我也有幾個舊的3.3.5網站,只是s看着這個錯誤。將plone.outputfilters固定到版本1.6似乎解決了這個問題。即,buildout.cfg

[versions] 
... 
plone.outputfilters = 1.6 
+0

+1,沒有測試過,但有道理。謝謝Alex Tucker! –

1

我敢打賭,你正在使用TinyMCE的,這拉p.outputfilters。

與Plone的-3系列的默認編輯器是庫普,這changement可能是原因,顯然已經固定在Plone的核心:https://dev.plone.org/ticket/9938

引用David Glick: 「由於歷史原因,這些轉換都在kupu和TinyMCE中實現。這是一個維護問題,因爲在一個程序包這些功能通常的錯誤修正沒有得到移植到其他的。」

你必須根據這些changements應用補丁,我想。

而且這changement可能是因爲有關這個話題的關注兩者的核心和第三方編輯器代碼: https://github.com/plone/plone.outputfilters/commit/e5067c8ef1894d1017d6bc81c5969112676840d5#plone/outputfilters/filters/resolveuid_and_caption.py

(由寫作時間爲1.9)使用p.outputfilters目前未發行的開發分支可能

+0

我使用TinyMcE 1.3beta ...得到一個適用於IE的編輯器。 1.3beta應該與Plone 3.3兼容,但顯然這個問題打破了3.3的兼容性。 –

+0

推薦使用Plone-3的TinyMCE版本是'1.1.11'。你的實例是否正在運行,或者錯誤是否真的破壞了一切?我必須儘快更新我的答案,以便更清楚地說明我懷疑的原因是,有人在Kupu中插入了圖像標題,而現在使用Tiny則會引發錯誤。 –

+0

是的,但我寧願修補新的TinyMCE的錯誤,而不願與舊的,不支持的TinyMCE版本爭執。所以它支持的版本是什麼並不重要:( –

相關問題