[Zope] name conflict - ImageFile
Itamar Shtull-Trauring
itamars@ibm.net
Thu, 30 Mar 2000 18:42:19 +0200
Lauri Posti wrote:
>
> Hi,
>
> I ran into trouble when trying use PIL (python imaging lib) in zope
> product.
> The problem is that zope's App.ImageFile is used by PIL's internals
> instead of PILs ImageFile and of course this doesn't work.
>
> Any ideas how to fix this problem?
Put an __init__.py in the PIL file that says:
import Image, ImageDraw
and have it import whatever you need from pIL.
Then you can just do
import PIL
in Zope.
The Poll Product has some instructions on this.
--
Itamar S.T. itamars@ibm.net