From: <Blu...@us...> - 2009-12-16 20:26:40
|
Revision: 321 http://virtplayground.svn.sourceforge.net/virtplayground/?rev=321&view=rev Author: BlueWolf_ Date: 2009-12-16 20:26:33 +0000 (Wed, 16 Dec 2009) Log Message: ----------- No id/uid will be send by the server anymore Modified Paths: -------------- trunk/client/core/callback.py trunk/client/core/client.py trunk/client/core/parser.py Modified: trunk/client/core/callback.py =================================================================== --- trunk/client/core/callback.py 2009-12-16 20:26:07 UTC (rev 320) +++ trunk/client/core/callback.py 2009-12-16 20:26:33 UTC (rev 321) @@ -107,7 +107,7 @@ """ pass - def logged_in(self, username, uid, cid): + def logged_in(self, username, cid): """ Called when we are logged in. @@ -115,9 +115,6 @@ The username for this user. Use this, instead what the user typed in, because this has the right caps. Also available in client.username. - uid: - The unique user-id for this user. Also available in - client.uid cid: The unique client-id for this connection. Also available in client.cid Modified: trunk/client/core/client.py =================================================================== --- trunk/client/core/client.py 2009-12-16 20:26:07 UTC (rev 320) +++ trunk/client/core/client.py 2009-12-16 20:26:33 UTC (rev 321) @@ -82,7 +82,6 @@ # Info after logging in self.username = None - self.uid = None # User-id self.cid = None # Connection-id threading.Thread.__init__(self) @@ -260,7 +259,6 @@ self.__rsa = None self.username = None self.cid = None - self.uid = None try: self.__sock.shutdown(0) except: pass Modified: trunk/client/core/parser.py =================================================================== --- trunk/client/core/parser.py 2009-12-16 20:26:07 UTC (rev 320) +++ trunk/client/core/parser.py 2009-12-16 20:26:33 UTC (rev 321) @@ -69,17 +69,14 @@ if succeed is True: * username - The username (with right caps) - * id - The user-id - * uid - The server's connection-id + * cid - The server's connection-id """ if msg['succeed'] == True: self.client.username = msg['username'] - self.client.uid = msg['uid'] self.client.cid = msg['cid'] - self.callback.logged_in(msg['username'], msg['uid'], - msg['cid']) + self.callback.logged_in(msg['username'], msg['cid']) else: self.callback.failed_logging_in(msg['reason']) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |