changeset 298:15c8916317d0

dbus bridge: added doc parameter, unmanaged yet
author Goffi <goffi@goffi.org>
date Sun, 20 Feb 2011 17:21:03 +0100
parents c5554e2939dd
children e044d1dc37d1
files src/bridge/DBus.py src/bridge/bridge_constructor/dbus_core_template.py
diffstat 2 files changed, 8 insertions(+), 8 deletions(-) [+]
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))
--- a/src/bridge/bridge_constructor/dbus_core_template.py	Fri Feb 18 22:32:02 2011 +0100
+++ b/src/bridge/bridge_constructor/dbus_core_template.py	Sun Feb 20 17:21:03 2011 +0100
@@ -84,7 +84,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)
@@ -98,7 +98,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)
@@ -127,13 +127,13 @@
         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))