[tuxdroid-svn] r5473 - software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_i
Status: Beta
Brought to you by:
ks156
|
From: remi <c2m...@c2...> - 2009-09-22 07:46:39
|
Author: remi
Date: 2009-09-22 09:46:26 +0200 (Tue, 22 Sep 2009)
New Revision: 5473
Modified:
software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py
Log:
* Don't attempt to recognize the encoding of the messages string showed in the TuxBox gadgets balloon. The plugins must absolutely send its string to utf8.
Modified: software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py 2009-09-21 13:44:27 UTC (rev 5472)
+++ software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py 2009-09-22 07:46:26 UTC (rev 5473)
@@ -583,6 +583,7 @@
messages = pguContext.getMessagesHistory()
result['count'] = len(messages)
for i, message in enumerate(messages):
+ """
if not String.isUtf8(message):
try:
tmp = message.decode("latin-1", "ignore")
@@ -590,6 +591,7 @@
except:
pass
message = String.toUtf8(message)
+ """
result['msg_%d' % i] = message
return result
self.__bfPguContextMutex.acquire()
|