[Product-Developers] Stupid ImageField problem/image not shown
Hedley Roos
hedleyroos at gmail.com
Sun Aug 10 07:24:04 UTC 2008
I think bobo traverse in atimage is the culprit. Posting from my
mobile. Sorry for the terse reply. Hedley
On 8/9/08, Andreas Jung <lists at zopyx.com> wrote:
> 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
>
--
Sent from Gmail for mobile | mobile.google.com
More information about the Product-Developers
mailing list