[reportlab-users] Appengine - Reportlab (Get Photo from Model)

Robin Becker robin at reportlab.com
Tue Oct 5 05:25:30 EDT 2010

On 05/10/2010 08:51, Martinho Arantes wrote:


> First, open up reportlab/lib/utils.py, and go to the rl_isdir() function,

> starting on line 463. This function depends on some internals of the Python

> classloader that aren't available on App Engine, so we need to change it.

> Comment out the last line, line 469, and in its place, insert "return

> False".


> Next, look at the _isPILImage() function, starting on line 520. Line 523

> reads "except ImportError:". Change this to read "except AttributeError:".


is there a standard way to determine that we're running as part of appengine? I
looked quickly, but I don't see a sys.platform that corresponds mentioned.
Robin Becker

More information about the reportlab-users mailing list