Author: remi
Date: 2008-09-16 21:08:22 +0200 (Tue, 16 Sep 2008)
New Revision: 1855

Modified:
   
software_suite_v2/tuxware/pytuxisalive/trunk/src/tuxisalive/api/TuxHTTPRequest.py
   software_suite_v2/tuxware/pytuxisalive/trunk/src/tuxisalive/api/version.py
Log:
* updated the HTTP requester. The retrieved XML files are now re-encoded in 
utf-8.
* updated the version of the API to 0.0.2

Modified: 
software_suite_v2/tuxware/pytuxisalive/trunk/src/tuxisalive/api/TuxHTTPRequest.py
===================================================================
--- 
software_suite_v2/tuxware/pytuxisalive/trunk/src/tuxisalive/api/TuxHTTPRequest.py
   2008-09-16 15:10:59 UTC (rev 1854)
+++ 
software_suite_v2/tuxware/pytuxisalive/trunk/src/tuxisalive/api/TuxHTTPRequest.py
   2008-09-16 19:08:22 UTC (rev 1855)
@@ -90,6 +90,12 @@
             except:
                 self.__mutex.release()
                 return xmlStruct
+            # Attempt to encoding the xml stream to utf-8
+            try:
+                u = resultStr.decode("latin-1")
+                resultStr = u.encode("utf-8")
+            except:
+                pass
             # Parse the xml
             xmlStruct = self.__parseXml(resultStr)
         else:

Modified: 
software_suite_v2/tuxware/pytuxisalive/trunk/src/tuxisalive/api/version.py
===================================================================
--- software_suite_v2/tuxware/pytuxisalive/trunk/src/tuxisalive/api/version.py  
2008-09-16 15:10:59 UTC (rev 1854)
+++ software_suite_v2/tuxware/pytuxisalive/trunk/src/tuxisalive/api/version.py  
2008-09-16 19:08:22 UTC (rev 1855)
@@ -10,7 +10,7 @@
 #    http://www.gnu.org/copyleft/gpl.html
 
 name = 'tuxisalive.api'
-version = '0.0.1-Beta'
+version = '0.0.2'
 author = "Remi Jocaille ([EMAIL PROTECTED])"
 
 description = "Python package for playing with Tuxdroid from the kysoh 
compagny."


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to