From: <Blu...@us...> - 2010-09-01 18:20:23
|
Revision: 387 http://virtplayground.svn.sourceforge.net/virtplayground/?rev=387&view=rev Author: BlueWolf_ Date: 2010-09-01 18:20:17 +0000 (Wed, 01 Sep 2010) Log Message: ----------- Forgot to let the downloader remove a task once it's finished. Also changed some debugging stuff to make it a (bit) more debugable Modified Paths: -------------- trunk/client/VP.py trunk/client/downloader.py trunk/client/playground.py Modified: trunk/client/VP.py =================================================================== --- trunk/client/VP.py 2010-09-01 17:41:05 UTC (rev 386) +++ trunk/client/VP.py 2010-09-01 18:20:17 UTC (rev 387) @@ -136,6 +136,8 @@ pygame.display.update(rect) def call(self, name, data): + print " [>] \t", name, data + sh['playground'].call(name, data) sh['layout'].call(name, data) sh['windows'].call(name, data) @@ -194,14 +196,11 @@ class Callback(core.Callback): def data_received(self, data): - print " --> " + repr(data) + print " --> \t" + repr(data) def data_send(self, data): - print " <-- " + repr(data) + print " <-- \t" + repr(data) - def disconnect(self, reason): - print "Server disconnected: " + reason - def connection_ready(self, public_rsa, reconnecting): # We are connected @@ -231,6 +230,8 @@ }) def disconnected(self, reason): + print " !!! \tConnection closed: " + reason + if reason == "manual": return # [TODO] Send the reason in some way Modified: trunk/client/downloader.py =================================================================== --- trunk/client/downloader.py 2010-09-01 17:41:05 UTC (rev 386) +++ trunk/client/downloader.py 2010-09-01 18:20:17 UTC (rev 387) @@ -40,6 +40,7 @@ def get_file(self, filename, filetype, callback, *arg): + print " !!! \tDownload task:", filename # First check if we already have this file loaded if filename in self.loaded_files: @@ -116,6 +117,7 @@ filename = task task = self.tasks[filename] + del self.tasks[filename] # Setting some variables destination = real_path("downloads", task['filetype'], \ Modified: trunk/client/playground.py =================================================================== --- trunk/client/playground.py 2010-09-01 17:41:05 UTC (rev 386) +++ trunk/client/playground.py 2010-09-01 18:20:17 UTC (rev 387) @@ -213,8 +213,6 @@ sh['update']() def logingui_draw(self, rect): - print "GUIupdate", rect - if self.logingui == None: return self.surf.blit(self.loginbg, rect, rect) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |