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):



_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue

Reply via email to