That was my thought to, but it isn't like that. When I run the code from
command line, all works perfectly well.
The difference in the command line vs zope is that in the command line the

from OFS import SimpleItem

is ignored, and I use the

class gallerybase:

instead of

#class gallerybase(SimpleItem.Item):

Can the import of SimpleItem, and the inheritance of SimpleItem.Item make
som errors??


-TOW

----- Original Message ----- 
From: "Andreas Jung" <[EMAIL PROTECTED]>
To: "Tor Oskar Wilhelmsen" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, July 05, 2004 8:33 AM
Subject: Re: [Zope-dev] Zope 2.7.0 and Pythom Image Library


> If the code works in pure Python then it must work in Zope especially when
> you call
> the code from an external method or other filesystem-based code as long as
> you are using
> the same Python version. Your problem looks likely that your input data is
> broken.
>
> -aj
>
> --On Montag, 5. Juli 2004 8:27 Uhr +0200 Tor Oskar Wilhelmsen
> <[EMAIL PROTECTED]> wrote:
>
> > Hi
> > I'm trying to get the PIL(last version on python 2.3)  working with
Zope,
> > but it seems that it's not working.
> >
> > I use the code:
> >  file = StringIO.StringIO(data)
> >  im = Image.open(file)
> >  im.show()
> >
> >  where data is datafrom a blob in a db. This code is working outside
> > Zope, but at once when i try to make it a product in Zope, I get this
> > error:
> >
> > IOError: cannot identify image file
> >
> >
> > Does anyone know what's wrong or what to do to make this work?
> >
> > Thanks for all help!
> >
> >
> > Regards
> > Tor Oskar Wilhelmsen
>
>
>
> Andreas Jung
> zopyx.com - Software Development and Consulting Andreas Jung


_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )

Reply via email to