dabo Commit
Revision 5894
Date: 2010-06-18 16:07:18 -0700 (Fri, 18 Jun 2010)
Author: Paul
Trac: http://trac.dabodev.com/changeset/5894

Changed:
U   trunk/dabo/lib/reportWriter.py

Log:
Apparently, we've been importing PIL incorrectly. This fixes it. Let me know
if there are any problems.


Diff:
Modified: trunk/dabo/lib/reportWriter.py
===================================================================
--- trunk/dabo/lib/reportWriter.py      2010-06-17 20:21:30 UTC (rev 5893)
+++ trunk/dabo/lib/reportWriter.py      2010-06-18 23:07:18 UTC (rev 5894)
@@ -11,7 +11,7 @@
 ######################################################
 # Very first thing: check for required libraries:
 _failedLibs = []
-for lib in ("reportlab", "PIL"):
+for lib in ("reportlab", "Image"):
        try:
                __import__(lib)
        except ImportError:
@@ -24,7 +24,7 @@
 
        %s
 
-PIL is the Python Imaging Library available from
+Image is the Python Imaging Library available from
 http://www.pythonware.com/products/pil
 
 reportlab is the ReportLab toolkit available from
@@ -53,7 +53,7 @@
 from dabo.dLocalize import _
 from dabo.lib.caselessDict import CaselessDict
 from reportlab.lib.utils import ImageReader
-from PIL import Image as PILImage
+import Image as PILImage
 import reportUtils
 
 # The below block tried to use the experimental para.Paragraph which



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to