Author: remi
Date: 2008-09-17 13:34:37 +0200 (Wed, 17 Sep 2008)
New Revision: 1868

Modified:
   
software_suite_v2/tuxware/pytuxisalive/trunk/src/tuxisalive/api/TuxAPIServer.py
Log:
* record the client level when you attempt to connect to the http server

Modified: 
software_suite_v2/tuxware/pytuxisalive/trunk/src/tuxisalive/api/TuxAPIServer.py
===================================================================
--- 
software_suite_v2/tuxware/pytuxisalive/trunk/src/tuxisalive/api/TuxAPIServer.py 
    2008-09-17 10:31:16 UTC (rev 1867)
+++ 
software_suite_v2/tuxware/pytuxisalive/trunk/src/tuxisalive/api/TuxAPIServer.py 
    2008-09-17 11:34:37 UTC (rev 1868)
@@ -285,6 +285,7 @@
         # If client level is invalid - Failed
         if level not in CLIENT_LEVELS:
             return False
+        self.__clientLevel = level
         # If client level is ANONYME - Success
         if level == CLIENT_LEVEL_ANONYME:
             cmdUrl = "0/"
@@ -311,7 +312,6 @@
         # Ok !!!
         self.__clientName = name
         self.__clientPasswd = passwd
-        self.__clientLevel = level
         cmdUrl = "%s/" % varResult['client_id']
         self.__setCmdUrl(cmdUrl)
         self.__setConnected(True)
@@ -367,6 +367,7 @@
         self.__autoConnectionThread = threading.Thread(target = 
self.__autoConnectionLoop,
             args = (level, name, passwd))
         self.__autoConnectionThread.start()
+        self.__clientLevel = level
     
     def __autoConnectionStop(self):
         """


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