Fix PIL import issue when PIL is available as Image module
Review Request #2162 — Created Feb. 27, 2011 and submitted — Latest diff uploaded
In e.g. Python 2.7 PIL module introduce himself as "Image". Part "from PIL import Image" return 'The Python Imaging Library (PIL) is required.' error while dev http server starting. The proper import is "from Image import Image" then. This patch add this second import form to ReviewBoard. I'm not sure this is really issue or some kind of geeky python's environment but this bugs me from the beginning. I know that when I install PIL from sources and compile it importing PIL works, but it didn't work when PIL is installed from pypi package. This issue was also raised for django project here: http://code.djangoproject.com/ticket/6054
dev http server starts properly.