diff sat_bridge/DBus.py @ 135:7452ac3818e7

Core, wix: added profile management for RegisterNewAccount method, and LaunchAction
author Goffi <goffi@goffi.org>
date Fri, 16 Jul 2010 20:16:13 +0800
parents 2240f34f6452
children 556c2bd7c344
line wrap: on
line diff
--- a/sat_bridge/DBus.py	Fri Jul 16 20:15:14 2010 +0800
+++ b/sat_bridge/DBus.py	Fri Jul 16 20:16:13 2010 +0800
@@ -126,7 +126,7 @@
                          in_signature='s', out_signature='i')
     def createProfile(self, name):
         info ('Profile creation asked')
-        return self.cb["createProfile"](str(name))
+        return self.cb["createProfile"](unicode(name))
 
     @dbus.service.method(const_INT_PREFIX+const_REQ_SUFFIX,
                          in_signature='s', out_signature='i')
@@ -243,9 +243,9 @@
         return self.cb["delContact"](entity, profile_key)
 
     @dbus.service.method(const_INT_PREFIX+const_REQ_SUFFIX,
-                         in_signature='sa{ss}', out_signature='s')
-    def launchAction(self, type, data):
-        return self.cb["launchAction"](type, data)
+                         in_signature='sa{ss}s', out_signature='s')
+    def launchAction(self, type, data, profile_key='@DEFAULT@'):
+        return self.cb["launchAction"](type, data, profile_key)
     
     @dbus.service.method(const_INT_PREFIX+const_REQ_SUFFIX,
                          in_signature='sba{ss}', out_signature='')