diff src/bridge/DBus.py @ 298:15c8916317d0

dbus bridge: added doc parameter, unmanaged yet
author Goffi <goffi@goffi.org>
date Sun, 20 Feb 2011 17:21:03 +0100
parents c25371424090
children 233e6fce0b49
line wrap: on
line diff
--- a/src/bridge/DBus.py	Fri Feb 18 22:32:02 2011 +0100
+++ b/src/bridge/DBus.py	Sun Feb 20 17:21:03 2011 +0100
@@ -332,7 +332,7 @@
             i+=1
         return attr_string
 
-    def addMethod(self, name, int_suffix, in_sign, out_sign):
+    def addMethod(self, name, int_suffix, in_sign, out_sign, doc={}):
         """Dynamically add a method to Dbus Bridge"""
         #FIXME: Better way ???
         attributes = self.__attribute_string(in_sign)
@@ -346,7 +346,7 @@
         func_table = self._dbus_class_table[self.__class__.__module__ + '.' + self.__class__.__name__][function._dbus_interface]
         func_table[function.__name__] = function #Needed for introspection
     
-    def addSignal(self, name, int_suffix, signature):
+    def addSignal(self, name, int_suffix, signature, doc={}):
         """Dynamically add a signal to Dbus Bridge"""
         #FIXME: Better way ???
         attributes = self.__attribute_string(signature)
@@ -416,12 +416,12 @@
         debug("registering DBus bridge method [%s]", name)
         self.dbus_bridge.register(name, callback)
 
-    def addMethod(self, name, int_suffix, in_sign, out_sign, method):
+    def addMethod(self, name, int_suffix, in_sign, out_sign, method, doc={}):
         """Dynamically add a method to Dbus Bridge"""
         print ("Adding method [%s] to DBus bridge" % name)
         self.dbus_bridge.addMethod(name, int_suffix, in_sign, out_sign)
         self.register(name, method)
 
-    def addSignal(self, name, int_suffix, signature):
+    def addSignal(self, name, int_suffix, signature, doc={}):
         self.dbus_bridge.addSignal(name, int_suffix, signature)
         setattr(DBusBridge, name, getattr(self.dbus_bridge, name))