[Product-Developers] ImageWidget: atapi.ImageField vs plone.app.blob.field.ImageField

Christian Ledermann christian.ledermann at gmail.com
Mon Mar 19 12:32:11 UTC 2012


Hello,

if I define an image for my contenttype as:

    atapi.ImageField('logo_image',
        max_size = (64,64),
        widget=atapi.ImageWidget(label=_(u'Logo'),
                        description=_(u'The organizations logo'),
                    ),
    ),

everything is fine.
However when i define it as recommended in
http://plone.org/documentation/manual/upgrade-guide/version/upgrading-plone-3-x-to-4.0/updating-add-on-products-for-plone-4.0/use-plone.app.blob-based-blob-storage

from plone.app.blob.field import ImageField
...

    ImageField('logo_image',
        max_size = (64,64),
        widget=atapi.ImageWidget(label=_(u'Logo'),
                        description=_(u'The organizations logo'),
                    ),
    ),


The widget will not display the image widget and the image is not
accessible at the
url context/absolute_url/logo_image

any pointers?


-- 
Best Regards,

Christian Ledermann

Nairobi - Kenya
Mobile : +254 702978914

<*)))>{

If you save the living environment, the biodiversity that we have left,
you will also automatically save the physical environment, too. But If
you only save the physical environment, you will ultimately lose both.

1) Don’t drive species to extinction

2) Don’t destroy a habitat that species rely on.

3) Don’t change the climate in ways that will result in the above.

}<(((*>


More information about the Product-Developers mailing list