Author: dmeyer
Date: Sun Mar 18 11:34:15 2007
New Revision: 9339

Modified:
   trunk/core/src/ipc/mbus_wrapper.py

Log:
make mbus rpc return InProgress

Modified: trunk/core/src/ipc/mbus_wrapper.py
==============================================================================
--- trunk/core/src/ipc/mbus_wrapper.py  (original)
+++ trunk/core/src/ipc/mbus_wrapper.py  Sun Mar 18 11:34:15 2007
@@ -188,10 +188,10 @@
         except:
             log.exception('failed to send to %s', self.addr)
             
-    def rpc(self, command, callback, *args, **kwargs):
-        if callback == None:
-            callback = _dummy_callback
-        return RPC(self, command, callback, *args, **kwargs)
+    def rpc(self, command, *args):
+        wait = kaa.notifier.InProgress()
+        RPC(self, command, wait.finished).call(*args)
+        return wait
 
     def register(self, prefix):
         self.rpc('mbus.register', None).call(prefix)

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to