2011-03-09 52 views
2

測試從大型站點的Plone 3.3向Plone 4的遷移導致丟失的leadimages(已使用collective.contentleadimage創建)。在leadimages沒有顯示和文件夾視圖leadimage以下錯誤occures:將引導圖像顯式轉換爲blob(遷移到Plone4)

Module Products.PageTemplates.Expressions, line 220, in evaluateStructure 
    Module zope.tales.tales, line 696, in evaluate 
    - URL: /opt/Plone4/buildout-cache/eggs/collective.contentleadimage-1.3.0-py2.6.egg/collective/contentleadimage/browser/folder_leadimage_view.pt 
    - Line 82, Column 24 
    - Expression: <PythonExpr (view.tag(item_object, css_class='tileImage'))> 
    - Names: 
     {'args':(), 
     'container': <ATTopic at /portalok/lutheran/aktualis/aktualis>, 
     'context': <ATTopic at /portalok/lutheran/aktualis/aktualis>, 
     'default': <object object at 0x7f93e6c4bae0>, 
     'here': <ATTopic at /portalok/lutheran/aktualis/aktualis>, 
     'loop': {}, 
     'nothing': None, 
     'options': {}, 
     'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0xba65310>, 
     'request': <HTTPRequest, URL=http://www.lutheran.hu:9080/portalok/lutheran/aktualis/aktualis/folder_leadimage_view>, 
     'root': <Application at >, 
     'template': <Products.Five.browser.pagetemplatefile.ViewPageTemplateFile object at 0x5f3a810>, 
     'traverse_subpath': [], 
     'user': <SpecialUser 'Anonymous User'>, 
     'view': <Products.Five.metaclass.SimpleViewClass from /opt/Plone4/buildout-cache/eggs/collective.contentleadimage-1.3.0-py2.6.egg/collective/contentleadimage/browser/folder_leadimage_view.pt object at 0xb3f49d0>, 
     'views': <Products.Five.browser.pagetemplatefile.ViewMapper object at 0xb255810>} 
    Module zope.tales.pythonexpr, line 59, in __call__ 
    - __traceback_info__: (view.tag(item_object, css_class='tileImage')) 
    Module <string>, line 1, in <module> 
    Module collective.contentleadimage.browser.folder_leadimage_view, line 30, in tag 
    Module Products.Archetypes.Field, line 2558, in tag 
    Module plone.app.blob.mixins, line 35, in getScale 
    Module plone.app.imaging.traverse, line 52, in getScale 
    Module plone.app.imaging.traverse, line 84, in createScale 
    Module plone.app.blob.field, line 291, in getFilename 
AttributeError: getFilename 

我認爲leadimages尚未遷移到斑點。在Plone4遷移日誌中,沒有關於引導映像遷移的行。

有沒有辦法將leadimages顯式遷移到blob?

感謝,

的Gabor Bogdanyi

回答

5

從更新日誌版本1.3:

該版本增加了BLOB支持,成爲PLONE4預設的潛在圖像存儲。遷移到BLOB不是準備好的!如果您正在遷移到PLONE4,請勿使用此版本。 IT可以安全地將其用於PLON3或PLONE4。

這基本上意味着你既可以:

  • 嘗試釘住版本1.2和不使用的斑點,而等待別人來解決這個問題,或者
  • 寫的遷移和貢獻回來了。查看plone.app.blob遷移來了解它是如何完成的。我已經做了一個例子來做那件事,沒有嘗試過,因爲p4已經出來,所以你的里程可能會有所不同:http://svn.plone.org/svn/collective/example.blobattype