From: <Blu...@us...> - 2009-12-14 21:23:36
|
Revision: 316 http://virtplayground.svn.sourceforge.net/virtplayground/?rev=316&view=rev Author: BlueWolf_ Date: 2009-12-14 21:23:28 +0000 (Mon, 14 Dec 2009) Log Message: ----------- Server now sends uid(user-id) and cid(connection-id) Modified Paths: -------------- trunk/client/core/client.py trunk/client/core/parser.py Modified: trunk/client/core/client.py =================================================================== --- trunk/client/core/client.py 2009-12-14 21:22:34 UTC (rev 315) +++ trunk/client/core/client.py 2009-12-14 21:23:28 UTC (rev 316) @@ -47,9 +47,9 @@ The settings: -app_name The name of your program. Will be send when logging in. - -app_name - The version of your program. Will be send when logging. - Should be a string. + -app_version + The version of your program. Will be send when logging + in. Should be a string. """ def __init__(self, config, callback_class): Modified: trunk/client/core/parser.py =================================================================== --- trunk/client/core/parser.py 2009-12-14 21:22:34 UTC (rev 315) +++ trunk/client/core/parser.py 2009-12-14 21:23:28 UTC (rev 316) @@ -75,11 +75,11 @@ if msg['succeed'] == True: self.client.username = msg['username'] - self.client.uid = msg['id'] - self.client.cid = msg['uid'] + self.client.uid = msg['uid'] + self.client.cid = msg['cid'] - self.callback.logged_in(msg['username'], msg['id'], - msg['uid']) + self.callback.logged_in(msg['username'], msg['uid'], + 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. |