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: [EMAIL PROTECTED] - 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

Attachment: pgpZ40DEr04Dr.pgp
Description: PGP signature

_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to