[Product-Developers] Stupid ImageField problem/image not shown

Andreas Jung lists at zopyx.com
Sat Aug 9 12:56:07 UTC 2008


I am currently facing an obvious stupid issue with ImageField under Plone 
3.1.2.

My content-type is defined as:

class MemberInfo(ATCTContent, HistoryAwareMixin):
    """ upaMemberInfo"""

    __implements__ = (ATCTContent.__implements__,
                      HistoryAwareMixin.__implements__,
                     )

    archetype_name = portal_type = meta_type = "MemberInfo"
    security = ClassSecurityInfo()
    schema = MemberInfoSchema


and the schema contains:

    ImageField('image',
                required=False,
                storage = AnnotationStorage(migrate=True),
                languageIndependent = True,
                sizes= {'large'   : (768, 768),
                        'preview' : (400, 400),
                        'mini'    : (200, 200),
                        'thumb'   : (128, 128),
                        'tile'    :  (64, 64),
                        'icon'    :  (32, 32),
                        'listing' :  (16, 16),
                       },
                validators = (('isNonEmptyFile', V_REQUIRED),),
                widget = ImageWidget(
                                label=u'Portrait',
                                label_msgid='label_portrait_text',
                                i18n_domain='plone',
    )),

In edit mode the complete display fine and the image widget lets me
choose an image. However in view mode I can not see the image.
The generated URL for the image is something like

http://host:port/plone/mymember/image

(as it should) however this raises a NotFound exception. However
using zopectl debug I see that the image data is stored correctly
but some ow the traversal obviously does not work correctly.

PIL can not be the issue since the news item works fine with an image...
any stupid I am missing?

Andreas


-- 
ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: info at zopyx.com - Phone +49 - 7071 - 793376
Registergericht: Amtsgericht Stuttgart, Handelsregister A 381535
Geschäftsführer/Gesellschafter: ZOPYX Limited, Birmingham, UK
------------------------------------------------------------------------
E-Publishing, Python, Zope & Plone development, Consulting
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20080809/c0726ae2/attachment.asc>


More information about the Product-Developers mailing list