Author: remi
Date: 2008-09-17 09:30:09 +0200 (Wed, 17 Sep 2008)
New Revision: 1859
Modified:
software_suite_v2/tuxware/pytuxisalive/trunk/src/tuxisalive/api/TuxAPIServer.py
Log:
* set the client level to ANONYME by default
* added a function to retrieve the client level (tux.server.getClientLevel())
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-16 19:49:11 UTC (rev 1858)
+++
software_suite_v2/tuxware/pytuxisalive/trunk/src/tuxisalive/api/TuxAPIServer.py
2008-09-17 07:30:09 UTC (rev 1859)
@@ -48,7 +48,7 @@
self.__clientName = None
self.__clientPasswd = None
self.__clientId = 0
- self.__clientLevel = None
+ self.__clientLevel = -1
# Connection field
self.__connected = False
self.__connectedLU = time.time()
@@ -66,6 +66,13 @@
"""
self.__autoConnectionStop()
self.disconnect()
+
+ def getClientLevel(self):
+ """Get the client level of the API instance.
+
+ @return: the client level
+ """
+ return self.__clientLevel
def __setCmdUrl(self, value):
"""
-------------------------------------------------------------------------
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