commit-gnue
[Top][All Lists]
Advanced

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

r6149 - trunk/gnue-common/src/rpc/drivers


From: johannes
Subject: r6149 - trunk/gnue-common/src/rpc/drivers
Date: Thu, 5 Aug 2004 07:53:13 -0500 (CDT)

Author: johannes
Date: 2004-08-05 07:53:12 -0500 (Thu, 05 Aug 2004)
New Revision: 6149

Modified:
   trunk/gnue-common/src/rpc/drivers/Base.py
Log:
Transform tracback-stacks into unicode, so handling localized exception 
messages will work


Modified: trunk/gnue-common/src/rpc/drivers/Base.py
===================================================================
--- trunk/gnue-common/src/rpc/drivers/Base.py   2004-08-05 12:51:54 UTC (rev 
6148)
+++ trunk/gnue-common/src/rpc/drivers/Base.py   2004-08-05 12:53:12 UTC (rev 
6149)
@@ -29,7 +29,7 @@
 import traceback
 import urlparse
 
-from gnue.common.apps import GDebug
+from gnue.common.apps import i18n
 
 # Indicate that this is not a valid plugin
 __noplugin__ = True
@@ -300,4 +300,7 @@
     """
     lines = traceback.format_exception (*sys.exc_info ())
     del lines [1:count+1]
-    return string.join (lines, '')
+    result = string.join (lines, '')
+    if isinstance (result, StringType):
+      result = unicode (result, i18n.encoding)
+    return result





reply via email to

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