From: Andreas S. <and...@xh...> - 2012-08-01 08:20:02
|
Hi! I've run into trouble using the ImageField of plone.app.blob. It seems that it does not support image sizes, or at least I cannot access it via an URL in the browser. I'm using following code (incomplete snippet): from plone.app.blob.field import ImageField as BlobImageField MyTypeSchema = folder.ATFolderSchema.copy() + atapi.Schema(( BlobImageField( 'myimage', languageIndependent=True, storage=atapi.AttributeStorage(), widget=atapi.ImageWidget( label=_(u"Image"), ), sizes={ 'icon' : (32,32), 'mini' : (64,64), 'small' : (128,128), 'preview' : (256,256), 'medium' : (512,512), 'banner' : (1024,1024), 'original' : (1024,1024), }, original_size=(1024,1024), pil_quality=90, required=True, validators=('isNonEmptyFile'), ), )) Proof me wrong, but shouldn't I be able to access the image via an URL like http://localhost/mysite/mytype/myimage_preview. Is this really not supported by the blobstorage product, or am I missing something important? |