Author: dmeyer
Date: Sat Mar 25 20:25:13 2006
New Revision: 1351

Modified:
   trunk/beacon/test/client.py

Log:
show results after changes

Modified: trunk/beacon/test/client.py
==============================================================================
--- trunk/beacon/test/client.py (original)
+++ trunk/beacon/test/client.py Sat Mar 25 20:25:13 2006
@@ -4,9 +4,6 @@
 import kaa
 import time
 
-def msg(*args):
-    print 'Beacon Server Message:', args
-
 def uptodate(stop):
     print 'Beacon has finished the query and parsing'
     if stop:
@@ -21,6 +18,10 @@
     if cur == total:
         print
 
+def changed(result):
+    for r in result:
+        print r
+    
 if len(sys.argv) == 1:
     print 'Beacon Test Client'
     print 'Start the client with your query'
@@ -58,7 +59,7 @@
     t2 = time.time()
 
 if monitor:
-    result.signals['changed'].connect(msg, 'changed')
+    result.signals['changed'].connect(changed, result)
     result.signals['progress'].connect(progress)
     result.signals['up-to-date'].connect(uptodate, False)
 else:


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to