hvelarde
hvelarde

Reputation: 2876

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.

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).

Upvotes: 1

Views: 58

Answers (1)

Mikko Ohtamaa
Mikko Ohtamaa

Reputation: 83546

FSS was not known or used by the site for which the script has been made.

You might want to retrofit convert() and other methods to support your use case.

Upvotes: 1

Related Questions