简体   繁体   English

使用FSS获取Plone 3.x中图像字段的值

[英]Getting the value of an image field in Plone 3.x with FSS

I'm trying to migrate an old Plone 3.3 site that uses FileSystemStorage using Mikko's Simple JSON export script . 我正在尝试使用Mikko的Simple JSON导出脚本迁移使用FileSystemStorage的旧Plone 3.3站点。

Everything runs fine, except for the absence of a value on the image fields, which are returned as empty strings ( '' ): 一切都正常运行,除了没有在图象场,其被返回空字符串(一个值的'' ):

[
    ...
    {
        "allowDiscussion": false, 
        "contributors": [], 
        "creation_date": "2009-11-04T15:15:36-02:00", 
        "creators": [
            "johndoe"
        ], 
        "description": "", 
        "effectiveDate": null, 
        "excludeFromNav": false, 
        "expirationDate": null, 
        "id": "banner_vertical.jpg", 
        "image": "", 
        "language": "", 
        "location": "", 
        "modification_date": "2009-11-04T15:15:37-02:00", 
        "portal_type": "Image", 
        "relatedItems": [], 
        "rights": "", 
        "subject": [], 
        "title": "Banner vertical", 
        "urlLegend": "http://"
    },
    ...
 ]

Any hint? 有什么提示吗?

( iw.fss version used is 2.8.0rc5). (使用的iw.fss版本是2.8.0rc5)。

FSS was not known or used by the site for which the script has been made. 创建脚本的站点不知道或未使用FSS。

You might want to retrofit convert() and other methods to support your use case. 您可能需要convert()和其他方法来支持您的用例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM