From: <Blu...@us...> - 2010-08-25 12:45:28
|
Revision: 372 http://virtplayground.svn.sourceforge.net/virtplayground/?rev=372&view=rev Author: BlueWolf_ Date: 2010-08-25 12:45:22 +0000 (Wed, 25 Aug 2010) Log Message: ----------- Note to myself: Don't program when feeling sleepy Modified Paths: -------------- trunk/client/core/callback.py trunk/client/core/client.py trunk/client/core/parser.py trunk/client/gui.py Modified: trunk/client/core/callback.py =================================================================== --- trunk/client/core/callback.py 2010-08-25 11:45:11 UTC (rev 371) +++ trunk/client/core/callback.py 2010-08-25 12:45:22 UTC (rev 372) @@ -101,10 +101,10 @@ """ pass - def custom_receive(self, header, body): + def custom_received(self, header, body): """ - This is when custom data from the server's app has been send. This can - be used to send custom stuff like money e.d + This is when custom data from the server' app has been sent. This can be + used to send custom stuff like money header: What type the body is (string) Modified: trunk/client/core/client.py =================================================================== --- trunk/client/core/client.py 2010-08-25 11:45:11 UTC (rev 371) +++ trunk/client/core/client.py 2010-08-25 12:45:22 UTC (rev 372) @@ -292,9 +292,9 @@ def custom_send(self, data_header, data_body = {}): """ - Sends custom data 'data_body' of type 'data_header' directly to the - others custom_receive of the server's app. This can be used to send - money and other custom events. + Sends custom data 'data_body' of type 'data_header' directly to the the + custom_receive of the server' app. This can be used to send money and + other custom events. """ self.send("custom", {"header": data_header, "body": data_body}) Modified: trunk/client/core/parser.py =================================================================== --- trunk/client/core/parser.py 2010-08-25 11:45:11 UTC (rev 371) +++ trunk/client/core/parser.py 2010-08-25 12:45:22 UTC (rev 372) @@ -157,7 +157,7 @@ def custom(self, msg): """ - A custom command send from the server' app. + A custom command sent from the server' app. * header: The type of the message @@ -165,5 +165,5 @@ The message itself """ - self.call.custom(msg['header'], msg['body']) + self.call.custom_received(msg['header'], msg['body']) Modified: trunk/client/gui.py =================================================================== --- trunk/client/gui.py 2010-08-25 11:45:11 UTC (rev 371) +++ trunk/client/gui.py 2010-08-25 12:45:22 UTC (rev 372) @@ -520,7 +520,6 @@ if i == -1: i = 0 self.cursorpos = i - if self.focus: self.update() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |