commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r9203 - trunk/gnue-forms/src/input/displayHandlers


From: reinhard
Subject: [gnue] r9203 - trunk/gnue-forms/src/input/displayHandlers
Date: Thu, 4 Jan 2007 16:45:25 -0600 (CST)

Author: reinhard
Date: 2007-01-04 16:45:24 -0600 (Thu, 04 Jan 2007)
New Revision: 9203

Modified:
   trunk/gnue-forms/src/input/displayHandlers/Image.py
Log:
Give installation sources in exception detail.


Modified: trunk/gnue-forms/src/input/displayHandlers/Image.py
===================================================================
--- trunk/gnue-forms/src/input/displayHandlers/Image.py 2007-01-04 20:36:51 UTC 
(rev 9202)
+++ trunk/gnue-forms/src/input/displayHandlers/Image.py 2007-01-04 22:45:24 UTC 
(rev 9203)
@@ -38,14 +38,15 @@
     """
     def __init__(self):
         errors.AdminError.__init__(self, u_(
-            "Form contains a <image> but python image support not installed") )
+            "Form contains a <image> but python image support not installed"))
+        self.detail = "Installation sources:\n" + \
+                "Source: http://www.pythonware.com/products/pil/\n"; + \
+                "Debian package: python-imaging"
 
 try:
   from PIL import Image as PILImage
 except ImportError:
   PILImage = None
-  gDebug(0, "Form contains a <image> but python image support not installed")
-  gDebug(0, "Install PIL from http://www.pythonware.com/products/pil/";)
   raise NeedsPilForImages()
 
 class Image(BaseCursor):





reply via email to

[Prev in Thread] Current Thread [Next in Thread]