[Zope] System Error from Zope Book Example
Chris Withers
chrisw@nipltd.com
Mon, 18 Feb 2002 17:20:01 +0000
Dan Shafer wrote:
>
> def makeThumbnail(self, original_id, size=128)
>
> from PIL import Image
> from cStringIO import StringIO
> import os.path
>
> # create a thumbnail image file
> original_image=getattr(self, original_id)
> original_file=StringIO(original_image.data)
So, this is the line with the bug.
What's data? What's original_image? I suspect data is of a type the StringIO
doesn't like. You sure you haven't got a typo here?
cheers,
Chris